Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

java jni - cant load dll files

Options
  • 10-04-2016 9:40am
    #1
    Registered Users Posts: 5,862 ✭✭✭


    folks,

    I'm using jni to bridge some c libs

    I've managed to load the libs in my local windows machine by starting the jvm with -Djava.library.path=C:\example\libs and using System.loadLibrary.

    However I created a vm in the cloud and installed an identical windows os on it. But I cannot get the java to load the dll's it tells me it cannot find them (UnsatisfiedLinkError) when they are clearly there. so whats up ?

    Has anyone any idea why this might be happening ?

    Thanks in advance


Comments

  • Closed Accounts Posts: 8,016 ✭✭✭CreepingDeath


    Is the new Windows version the same 32/64 bit version as on the original PC?
    Is the new Java JRE the same 32/64 bit version as on the original PC?
    Is the DLL 32 or 64 bit ?

    That's ignoring the other simpler options, like you have the DLL in the wrong directory, spaces in the directory names etc.


Advertisement