Project works in debugger, not after compiling
Hi people,
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:
Quote:
Exception in thread "main" java.lang.UnsatisfiedLinkError: be.belgium.eid.eidlib
JNI.new_BEID_ID_Data()J
at be.belgium.eid.eidlibJNI.new_BEID_ID_Data(Native Method)
at be.belgium.eid.BEID_ID_Data.(BEID_ID_Data.java:141 )
at eid.Main.main(Main.java:20)
The 2 jar files are copied into a lib subdirectory.
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.
Quote:
java -jar "eid.jar" -Djava.library.path="lib"
did not help either
Can anyone point me in the right direction?