Getting an UnsatisfiedLinkError when using JNI -- reasons elusive
843829Jun 17 2009 — edited Jun 17 2009On Windows Vista, I'm trying to install PLJava (sc. [http://search.cpan.org/~gmpassos/PLJava-0.04/README.pod|http://search.cpan.org/~gmpassos/PLJava-0.04/README.pod] ), which uses JNI to embed Perl code into Java. I've followed the building process there up to
Perl MakeFile.PL
dmake
(Instructions say make with nmake; I tried both)
Up to that point it seems to work fine, but when I try to test it:
---
C:\Users\Name\Documents\Downloads\PLJava-0.04>dmake test
C:\PROGRA~1\Java\jdk1.5.0\bin\java test
PLJava - Native code library failed to load. See the chapter on Dynamic Linking
Problems in the SWIG Java documentation for help.
java.lang.UnsatisfiedLinkError: PLJava_start
dmake: Error code 129, while making 'test'
C:\Users\Name\Documents\Downloads\PLJava-0.04>java test
PLJava - Native code library failed to load. See the chapter on Dynamic Linking
Problems in the SWIG Java documentation for help.
java.lang.UnsatisfiedLinkError: perl5.PLJavaJNI.PLJava_start()I
---
The error seems to be happening after loadLibrary works successfully.
"java -verbose:jni test" doesn't seem to reveal anything interesting.
Another guy and I have been puzzling over this at a perl forum; the relevant highlight, I think, is [http://perlmonks.org/index.pl?node_id=772255|http://perlmonks.org/index.pl?node_id=772255] wherein he's posted a whole error log for nmake test.
Can anyone glean what's wrong from this?