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!

UnsatisfiedLinkError running 32 bit on a 64 bit windows server 2008

843829Dec 10 2009 — edited Dec 16 2009
Hi,

I have developped a JNI solution a while back and it runs fine on a Windows 2008 server 32 bit computer, but when running on a 64 bit windows server 2008 it gives me the following exception

Exception in thread "main" java.lang.UnsatisfiedLinkError: <name of the library> (JVMPORT015E Unable to resolve DLL references - a prerequisite DLL may be missing)
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:957)
at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:926)
at java.lang.System.loadLibrary(System.java:453)
at xxx.jni.xxx.<clinit>(Unknown Source)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:192)
at be.xxx.initialize(Unknown Source)
at be.xxx.main(Unknown Source)

I tried specifying the library path by using the -Djava.library.path= property (once again this works fine on 32 bit version) but the same error.

I used the old Visual studio 6 compiler to create the 32 bit DLL. Do I need to re-compile the DLL for 64 bit? And any pointers on how to do that?

I am a C++ newbie so any help would be appreciated
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 13 2010
Added on Dec 10 2009
2 comments
685 views