tags:

views:

87

answers:

3

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?

+1  A: 

You can manually set the path to this value by starting with

java -Djava.library.path=PATH_TO_LIBRARY

Steve B.
+5  A: 

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!

Brian Agnew
i did it but it.But am still geting same error.
Brian is correct. All I know is every time I try and use machine-coded libraries in Java, I run into the same problems, and it is a pain to deal with. Try different configurations of the value, and if the path has spaces it must be encoded in quotes.
aperkins
I have successfully run native code by modifying the path environment variable directly.
OscarRyz
+4  A: 
OscarRyz
i have set the path to C:\Program Files\Sonda\Sonda SDK SE but still geting same problem
i have added the new environment variable. but i cant see the new path when i do echo %path%.Do i need to restart the pc?
Not the whole PC, but if you are running this from a command-prompt window that was open before you made the change, you'll need to close it and open a new one to see the change.
Nate
Also, the spaces in "C:\Program Files\Sonda\Sonda SDK SE" are going to screw things up - you can either copy the SDK to another location without spaces, if possible; or surround the path with quotes.
Nate