Exception in thread "main" java.lang.UnsatisfiedLinkError: cannot open shared object file: No such file or directory
Answered
Hi,
I have been trying to run a program which makes use of an external library. Although I have set the dependencies and the libraries inside IntelliJ, I still receive the error mentioned in the subject. Can you guys help me fix it?
The same code when run in the terminal runs fine (using the java -classpath option)
I have added the screen grabs in order of things I have executed.
Please let me know if you need any further information
tx.
Sharath





Please sign in to leave a comment.
You may need to set LD_LIBRARY_PATH in the environment variables of the run/debug configuration, see the following related questions:
http://stackoverflow.com/questions/28131096/cannot-open-shared-object-file-c-library-in-java
http://stackoverflow.com/questions/695530/why-do-i-have-to-define-ld-library-path-with-an-export-every-time-i-run-my-appli