Project works in debugger, not after compiling
I'm working on a project that i got from the internet and which I need to modify to my needs.
The project contains 2 jar files that need to be set in the libraries.
The project works fine in the netbeans debugger, but when I compile it it returns the following error:
The 2 jar files are copied into a lib subdirectory.
Exception in thread "main" java.lang.UnsatisfiedLinkError: be.belgium.eid.eidlib
at be.belgium.eid.eidlibJNI.new_BEID_ID_Data(Native Method)
at be.belgium.eid.BEID_ID_Data.(BEID_ID_Data.java:141 )
Apparently something is wrong with the libraries, but I can't seem to figure out what. I found some dll's in the windows system32 directory that are likely to be used by the program. I copied them both to the jar file's folder and the lib subdirectory, but no luck there
Googling thought me that i need to set the java_library_path but I'm not sure how to do this in netbeans.
did not help either
java -jar "eid.jar" -Djava.library.path="lib"
Can anyone point me in the right direction?