Reputation: 865
i am using a third part SDK with my java application.The providers of sdk provided me exe file that i installed and one java project.I installed the exefile. Now when i run the code i get a dialog box showing error
Excepting a absulut path for library AKSSDK.dll
No AKSSDK in java.library.path
could not load load library AKSSDK
how do i resolve it?
Upvotes: 1
Views: 199
Reputation: 199284
You have to add AKSSDK.dll
to your PATH
environment variable.
It would look like this:
echo %PATH%
C:\xyz\;C:\other\etc\etc;C:\Your\Path\To\AKSSDK.dll
EDIT
To modify your environment variable you have to go to:
MyComputer/RightClick/Properties/Advanced/EnvironmentVariables
(source: vlaurie.com)
And modify the existing Path
under System variables
See this tutorial for more details: http://vlaurie.com/computers2/Articles/environment.htm
I have had problems with the white space of ( Program files ) in the past. If possible install your SDK on something like C:\SondaSDK
or C:\You\SondaSDK
That way you shouldn't have problems.
Upvotes: 4
Reputation: 272367
You need to run java
with the following configuration:
java -Djava.library.path={where your library is}
Note the above is the directory where your library is, not the full path name of the library!
Upvotes: 5
Reputation: 57323
You can manually set the path to this value by starting with
java -Djava.library.path=PATH_TO_LIBRARY
Upvotes: 1