This discussion is archived
1 Reply Latest reply: Jan 19, 2013 2:49 PM by EJP RSS

How to load multiple shared libraries

984427 Newbie
Currently Being Moderated

I have 2 shared libraies, and The depends on I built the using the command below.

g++ -shared -L./path/to/lib -lshared1 -o ./path/to/lib2/ ./myWorkCpp.o

I got following errors when I ran my Java class.

Native code library failed to load.
java.lang.UnsatisfiedLinkError: /path/to/ cannot open shared object file: No such file or directory

Can anyone please help?



  • Correct Answers - 10 points
  • Helpful Answers - 5 points