Eclipse是基於Java的開發平台,在CentOS上啟動Eclipse的時候,很多朋友遇到了Eclipse報錯問題,導致Eclipse無法啟動,下面小編就給大家介紹下CentOS啟動Eclipse報錯的解決方法,一起來學習下吧。
報錯如下:
Failed to load the JNI shared library “/home/java2000_wl/jdk/jdk1.6.0_41/bin/。。/jre/lib/i386/client/libjvm.so”。
解決方法:
修改 /etc/sysconfig/selinux 文件 禁止SELINUX選項
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
#SELINUX=enforcing
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
上面就是CentOS啟動Eclipse報錯的解決方法的相關介紹了,如果你遇到了Eclipse無法啟動的問題,可以參考Ubuntu不能啟動Eclipse怎麼辦?
解決 RHEL 7/ CentOS 7/Fedora 出現Unit iptables.service failed to load
Metasploit攻擊Oracle的環境搭建(Failed to load the OCI library: no such file to load -- oci8)
Linux下安裝Eclipse出現錯誤failed to load the jni shared
CentOS開啟Eclipse報錯Failed to load the JNI shared如何解決?
【下載:CentOS】OS + Linux CentOS 7 / CentOS