Hi Brian,
Happy to read that you got it to work on Linux. As for the problem with the
"copy" for your Windows script, you can take a look at the Makefile that is
generated in the build directory. You might have to set CLEAN_AFTER_BUILD =>
0.
When Inline::Java calls "make -s class", you will see on the make file in
the rule for class: there is a 'copy' command. That's what failling. Maybe
you can try running it manually to see what's wrong with it.
I am reworking that bit to use File::Copy instead of cp/copy to try to get
rid of these problems.
Also, you should be able to use string and Java objects as parameters. Look
at the test scripts 2_primitives.t and 3_objects.t and you'll see that it
works...
Thanks!
Patrick
----- Original Message -----
From: "Brian Ingerson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 07, 2001 7:31 PM
Subject: Re: Inline::Java pre-0.01 #2
> 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'
>