Saturday, August 18, 2012

Troubleshooting: cannot restore segment prot after reloc: Permission denied

After I installed JDK 1.7.0 (build 1.7.0-v147) on the guest Red Hat Linux 5.8 in the Oracle VirtualBox, I see the following error:

~/jdk1.7.0/jre/lib/i386/client/libjvm.so: cannot restore segment prot after reloc: Permission denies

After research, found out that the error is caused by my Red Hat Linux settings. Running the following command to fix the problem:

$chcon -t textrel_shlib_t  ~/jdk1.7.0/jre/lib/i386/client/libjvm.so

chcon is the command to change the security context of each FILE to CONTEXT.

2 comments:

How Does the Server Certificate SSL Work?

The Secure Socket Layer (SSL) is the standard security transportation protocol for establishing an encrypted communication between the clie...