Answer the question
In order to leave comments, you need to log in
Why doesn't java see the library?
Hello everyone, there was a problem with connecting the library on linux ubuntu.
The folder /mnt/
contains the files necessary to run. treedb.jar и jkyotocabinet.so
I look at what is in the current folder:
[email protected]:/mnt# ls -l
-rwxr-xr-x 1 root root 1948919 Mar 11 2014 jkyotocabinet.so
-rwxr-xr-x 1 root root 1404322 Nov 18 16:11 treedb.jar
"-Djava.library.path=."
[email protected]:/mnt# sudo java -Xms5000m -Xmx51000m -d64 -jar -Djava.library.path=. treedb.jar
current dir = /mnt/.
java library path = .
System.loadLibrary("jkyotocabinet");
then an exception occurs on the line:Exception in thread "main" java.lang.UnsatisfiedLinkError: no jkyotocabinet in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
at java.lang.Runtime.loadLibrary0(Runtime.java:849)
at java.lang.System.loadLibrary(System.java:1088)
at treedb.Main.main(Main.java:27)
java -XshowSettings:properties
and threw it jkyotocabinet.so
into folders that were already in java.library.path. I installed it programmatically. System.setProperty( "java.library.path", "." );
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question