Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

libjvm.so: cannot open shared object file

807599Mar 6 2007 — edited Mar 6 2007
Hi, I hope I am posting to right forums. I am trying to install tomcat on my linux box and running into an issue ?libjvm.so: cannot open shared object file: Permission denied?

Here is what I have:

Linux = Red Hat Linux release 9 (Shrike)
SDK = java_app_platform_sdk-5_02-linux.bin
Tomcat = apache-tomcat-6.0.10

I built jsvc this morning and running following command to get tomcat daemon up,

./bin/jsvc -cp ./bin/bootstrap.jar -outfile ./logs/catalina.out -errfile ./logs/catalina.err org.apache.catalina.startup.Bootstrap

I am seeing following error message in Catalina.err file,

06/03/2007 10:49:24 21247 jsvc.exec error: Cannot dynamically link to /home/rsah/SDK/jdk/jre/lib/i386/client/libjvm.so
06/03/2007 10:49:24 21247 jsvc.exec error: /home/rsah/SDK/jdk/jre/lib/i386/client/libjvm.so: cannot open shared object file: Permission denied
06/03/2007 10:49:24 21246 jsvc.exec error: Service exit with a return value of 1

I looked at the permission for libjvm.so and it appears to be fine. When I run ldconfig ?p I don?t see libjvm.so loaded so definitely there is something going on. I edited /etc/ld.so.conf and added following line

/home/rsah/SDK/jdk/jre/lib

But still I don?t see libjvm.so being loaded. I am wondering if one could provide me some pointers.

libjvm.so located at,

/home/rsah/SDK/jdk/jre/lib/i386/client

-rwxrwxrwx 1 root root 5310375 Mar 5 18:20 libjvm.so


I have set JAVA_HOME = ?/home/rsah/SDK/jdk?

PS: I tried all above stuffs with sudo permission.

Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 3 2007
Added on Mar 6 2007
1 comment
1,008 views