Patrick LeBoutillier wrote:
>
> I've put a new snapshot on
>
> http://ttul.org/~patrick
>
> I think I fixed some of the perl 5.005_03 bugs, and I also managed to to run
> all tests succesfully
> onWindows using nmake (Win98, Java SDK 1.3.0_02, ActiveState 5.6.0 build
> 623)!
I got Inline-Java to pass make test on
Win2k/JavaSDK-1.3.0_02/ActivePerl623. But when I ran 'make test' a
second time it failed.
Also this script doesn't work:
----8<----
use Inline Java => DATA => BIN => 'D:\jdk1.3.0_02\bin';
my $alu = alu->new;
print "9 + 16 = ", $alu->add(9, 16), "\n";
print "9 - 16 = ", $alu->subtract(9, 16), "\n";
END{<>} # keep DOS window open
__END__
__Java__
class alu {
public alu(){
}
public int add(int i, int j){
return i + j ;
}
public int subtract(int i, int j){
return i - j ;
}
}
----8<----
It fails with:
----8<----
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
The syntax of the command is incorrect.
NMAKE : fatal error U1077: 'copy' : return code '0x1'
Stop.
A problem was encountered while attempting to compile and install your
Inline
Java code. The command that failed was:
nmake -s class
The build directory was:
C:/Documents and
Settings/briani/Desktop/_Inline/build/main_Java_C__Documents_an
d_Settings_briani_Desktop_java_pl_6a41c3b03c3ac3ebb7f3deb6512f96be/
The error message was:
To debug the problem, cd to the build directory, and inspect the output
files.
at C:\Documents and Settings\briani\Desktop\java.pl line 0
INIT failed--call queue aborted.
----8<----
The first 2 lines are standard for nmake. They will print even on
success. To hide these, you should redirect nmake STDERR to your output
file as well:
nmake foo > foo.out 2>&1
I still would like to test this on Linux. Somebody told me to try
Blackdown Java. Anyone out there used it?
Cheers, Brian
--
perl -le 'use Inline C=>q{SV*JAxH(char*x){return newSVpvf
("Just Another %s Hacker",x);}};print JAxH+Perl'