Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

java jni - cant load dll files

  • 10-04-2016 09:40AM
    #1
    Registered Users, Registered Users 2 Posts: 5,845 ✭✭✭


    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,015 ✭✭✭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