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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

java jni - cant load dll files

  • 10-04-2016 8:40am
    #1
    Registered Users, Registered Users 2 Posts: 5,863 ✭✭✭


    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