How do i give the path for the .dll
or .so
file in netbeans to load the library using
System.loadLibrary("Foo")
I read this on netbeans page but couldn't help me. as it gives the unsatisfied link error.
These are the two things i tried :
In the following snapshot i created a lib
folder inside the netbeans project and placed the dll
files inside it.
In the second snapshot i created a lib
folder inside the modules
folder and placed all the dll
files inside lib
folder as stated in the link.
But both of them give me unsatisfied link error
exception. How do i set java.library.path
in netbeans so that i can directly test the application from netbeans,
without having to go and write on the terminal ?
Its working now. Some little bit setting you have to do with your Netbean IDE.Only of Netbean IDE.
Follow the Steps :-
==>Right click on the Project
==>Properties
==>Click on RUN
==>VM Options : -Djava.library.path="C:\Your Directory where Dll is present"
==>Ok
Its working 100%. I have done this in my own project.