鸿 网 互 联 www.68idc.cn

当前位置 : 服务器租用 > 服务器相关 > linux > >

CentOS开启Eclipse报错Failed to load the JNI shared如何解决?

来源:互联网 作者:佚名 时间:2016-09-20 11:25
Eclipse是基于Java的开发平台,在CentOS上启动Eclipse的时候,很多朋友遇到了Eclipse报错问题,导致Eclipse无法启动,下面小编就给大家介绍下CentOS启动Eclipse

  Eclipse是基于Java的开发平台,在CentOS上启动Eclipse的时候,很多朋友遇到了Eclipse报错问题,导致Eclipse无法启动,下面小编就给大家介绍下CentOS启动Eclipse报错的解决方法,一起来学习下吧。

 CentOS开启Eclipse报错Failed to load the JNI shared如何解决?

  报错如下:

  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

网友评论
<