本文主要是介绍linux下jdk安装 failed /usr/local/jdk1.6.0_10/jre/lib/i386/client/libjvm.so, because /usr/local/jdk1.6.,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
今天在centos5.5下面安装jdk1.7后,运行java -version,没有出现相关的版本信息,而是出现了以下错误:
Error: dl failure on line 863
Error: failed /home/yumh/software/jdk1.7.0_79/jre/lib/i386/server/libjvm.so, because /home/yumh/software/jdk1.7.0_79/jre/lib/i386/server/libjvm.so: cannot restore segment prot after reloc: Permission denied
后来经过查询得知,是selinux的设置的问题。
解决办法如下:
1。打开/etc/selinux/config (vim /etc/selinux/config)
2。把selinux=enforcing改为selinux=disabled
3。重启linux (init 6)
这篇关于linux下jdk安装 failed /usr/local/jdk1.6.0_10/jre/lib/i386/client/libjvm.so, because /usr/local/jdk1.6.的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!