• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to may my library to the java.library.path?  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have got a source code from the web , it has a file named libsvm.so, but I don't know how to use it ,when I try to run the program , I got the exception :
java.lang.UnsatisfiedLinkError : no svm in java.library.path
and the code which throw this exception is :
System.LoadLibrary("svm");
 
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This looks like linux.
if libsvm.so is here:
/opt/foo/bar/libsvm.so
then call

before running your program.
Or you may move libsvm.so to a directory, which is already in the LD_..PATH,
/usr/local/lib/
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!