Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

java jni - cant load dll files

  • 10-04-2016 08: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