CentOS安装的问题eclipse
2013-06-29 05:05
260 查看
在启动eclipse的时候出现错误:
failed to load the jni shared library"/usr/local/java/jdk1.6.0_21/bin/../jre/lib/i386/client/libjvm.so
百度一把,全部人都一样的结果:
在Linux下安装Eclipse出现如下错误
failed to load the jni shared library"/usr/local/java/jdk1.6.0_21/bin/../jre/lib/i386/client/libjvm.so
解决方法:关闭selinux即可解决。
# vi /etc/sysconfig/selinux
修改:SELINUX=enforcing 为:SELINUX=disable 禁用SeLinux, 再重启运行即可
如果不想重启,执行命令:setenforce 0
就可以不重启关闭selinux了
禁用SeLinux有风险,还有其他办法可以解决滴,一个哥们说到:
SELinux is preventing /usr/local/eclipse/eclipse from
loading /usr/local/jdk1.6.0_02/jre/lib/i386/client/libjvm.so which requires text relocation.Detailed DescriptionThe /usr/local/eclipse/eclipse application
attempted to load /usr/local/jdk1.6.0_02/jre/lib/i386/client/libjvm.so which requires text relocation. This is a potential security problem. Most libraries do not need this permission. Libraries are sometimes coded incorrectly and request this permission.
The SELinux Memory Protection Tests web page explains how to remove this requirement. You can configure SELinux temporarily to allow /usr/local/jdk1.6.0_02/jre/lib/i386/client/libjvm.so
to use relocation as a workaround, until the library is fixed. Please file a bug report against this package.Allowing AccessIf you trust /usr/local/jdk1.6.0_02/jre/lib/i386/client/libjvm.so to run correctly, you can change the file context to textrel_shlib_t.
"chcon -t textrel_shlib_t /usr/local/jdk1.6.0_02/jre/lib/i386/client/libjvm.so"
The following command will allow this access: chcon -t textrel_shlib_t /usr/local/jdk1.6.0_02/jre/lib/i386/client/libjvm.so
请注意画线的提示,它提示我们如果想允许eclipse访问那个目录,使用这个命令。
failed to load the jni shared library"/usr/local/java/jdk1.6.0_21/bin/../jre/lib/i386/client/libjvm.so
百度一把,全部人都一样的结果:
在Linux下安装Eclipse出现如下错误
failed to load the jni shared library"/usr/local/java/jdk1.6.0_21/bin/../jre/lib/i386/client/libjvm.so
解决方法:关闭selinux即可解决。
# vi /etc/sysconfig/selinux
修改:SELINUX=enforcing 为:SELINUX=disable 禁用SeLinux, 再重启运行即可
如果不想重启,执行命令:setenforce 0
就可以不重启关闭selinux了
禁用SeLinux有风险,还有其他办法可以解决滴,一个哥们说到:
SELinux is preventing /usr/local/eclipse/eclipse from
loading /usr/local/jdk1.6.0_02/jre/lib/i386/client/libjvm.so which requires text relocation.Detailed DescriptionThe /usr/local/eclipse/eclipse application
attempted to load /usr/local/jdk1.6.0_02/jre/lib/i386/client/libjvm.so which requires text relocation. This is a potential security problem. Most libraries do not need this permission. Libraries are sometimes coded incorrectly and request this permission.
The SELinux Memory Protection Tests web page explains how to remove this requirement. You can configure SELinux temporarily to allow /usr/local/jdk1.6.0_02/jre/lib/i386/client/libjvm.so
to use relocation as a workaround, until the library is fixed. Please file a bug report against this package.Allowing AccessIf you trust /usr/local/jdk1.6.0_02/jre/lib/i386/client/libjvm.so to run correctly, you can change the file context to textrel_shlib_t.
"chcon -t textrel_shlib_t /usr/local/jdk1.6.0_02/jre/lib/i386/client/libjvm.so"
The following command will allow this access: chcon -t textrel_shlib_t /usr/local/jdk1.6.0_02/jre/lib/i386/client/libjvm.so
请注意画线的提示,它提示我们如果想允许eclipse访问那个目录,使用这个命令。
相关文章推荐
- centos 6.3安装eclipse问题
- CentOS环境Eclipse安装SVN插件几大常见问题
- 在CentOS 6.X 上面安装 Python 2.7.X以及安装locust遇到ssl的问题
- CentOS 7 U盘 启动盘安装遇到的问题
- centos7下安装Eclipse Oxygen(时间戳2017年7月1日)
- 解决Centos 6.4 下安装WPS 出现 新建/打开文件闪退的问题
- 阿里云512M主机(CentOS 6.5)编译安装MySQL 5.6.21遇到的问题
- HP Proliant DL580 G5安装centos7 x64无法识别阵列卡问题
- U盘安装centos 7 与centos 7 mini版 遇到的问题
- U盘安装Centos后拔除U盘无法启动问题解决方法
- Mac 下Eclipse安装SVN出现的问题总结
- 关于Centos安装fabric遇到的问题和解决方法
- CentOS 安装 opencv, 解决 Python cv2 module 问题(终极解决方法)
- CentOS6.5上python-mysql环境的安装问题解决
- Centos 下编译安装Yaf错误问题
- Ubuntu 12.04中的eclipse 安装1.7版svn插件问题
- Linux下(Ubuntu/Centos) golang Eclipse安装配置
- maven+eclipse安装过程出现问题汇总
- Eclipse下安装Android ADT插件问题
- 64位win7中利用VM8安装64位的CentOS6.3VT禁用问题解决