jpl in packages

[email protected] (Ben) Thu, 22 Feb 2001 14:25:40 +0000 (GMT)
Newsgroups perl.jpl
Message-ID <[email protected]>
Hi,

I have been trying to get JPL to play ball with my java application. the
java file ben.java is part of a package named a.b and inside I dropped a
simple perl function like: 

perl void loadPerlUserDefinedRules() {{
       print "jpl working in my application\n";
    }} 

Having played about with JPL to get it to work with packages and create
the right .c and .h files I have go to a point where the program will
start up and the 

static {
	System.loadLibrary("ben"); 
        PerlInterpreter pi = new PerlInterpreter().fetch();
        // pi.eval("$JPL::DEBUG = $ENV{JPLDEBUG};");
	pi.eval("warn qq{loading ben\n} if $JPL::DEBUG");
	pi.eval("eval {require 'ben.pl'}; print $@ if $@;");
   }

section and seems to all be up and running for debug info I have in
various places, but as soon as I try to make a call the
loadPerlUserDefinedRules I get: 

java.lang.UnsatisfiedLinkError: loadPerlUserDefinedRules
        at a.b.ben.main(Compiled Code)

I have tried

loadPerlUserDefinedRules();

a.b.loadPerlUserDefinedRules();

etc, but nothing seems to convince it that it exists.

Has anyone has a similar experience that can help please?

thanks

Ben




---------------------- TransEDA ------------------------
          Verification From Concept to Reality
                http://www.transeda.com
--------------------------------------------------------
      Ben Scurr         Tel:   +44 (0)23 8068 3536
      TransEDA plc.     Fax:   +44 (0)23 8065 0805
                        Email: [email protected]
--------------------------------------------------------