Click here to get back home

PLJava need help

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
PLJava need help harris 09-01-2004
Get Chitika Premium
Posted by harris on September 1, 2004, 8:51 pm
Please log in for more thread options
I am using PLJava module on Windows 2k. The module compiled and test
program works okay.

I tried following code which does not run and it crashes.

import perl5.Perl ;
import perl5.SV ;

public class testsub {

public static void main(String argv[]) {

Perl.eval("print qq`Hello World!n` ;") ;

///////////////////

SV foo = Perl.NEW("foo") ; // $foo = new foo() ;

foo.call("test", "123,456") ; // $foo->test(123,456) ;
}
}

There is separate file foo.pm in same path where java class file is
located, which is not found by above testsub program. foo.pm looks as
follows-
#
#foo.pm
package foo;

sub new {
bless{};
}

sub test {
print print qq`FOO>> @_n`
}

sub DESTROY {
print qq`DEST>> @_n` ;
}
1;

Any ideas why this fails? Thanks in advance.
Harris M.


Similar ThreadsPosted
PLJava - Perl embeded into Java (calling Perl from Java) - 1sr release - call for tests and review, please. July 13, 2004, 4:06 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap