Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Getting an UnsatisfiedLinkError when using JNI -- reasons elusive

843829Jun 17 2009 — edited Jun 17 2009
On 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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 15 2009
Added on Jun 17 2009
3 comments
295 views