I installed a eclipse on the rhel. After I configured the environment besides jdk,I had a problem.
Failed to load the JNI shared library libjvm.so
I searched the Internet for a solution to this problem. They said that I should modify a configuration file.
/etc/sysconfig/selinux
But I couldn't find it there.
A bug in the SELinux targeted policy causes the libjvm.so to be labeled incorrectly as type java_exec_t instead of textrel_shlib_t. So you can either disable selinux by editing /etc/selinux/config file
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Security-Enhanced_Linux/sect-Security-Enhanced_Linux-Working_with_SELinux-Enabling_and_Disabling_SELinux.html or giving the command setenforce 0
Thanks & Regards,
Alok
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.