运行java -version报cannot restore segment prot after reloc: Permission denied

linux 安装jdk1.6后,运行java -version,没有出现相关的版本信息,而是出现了以下错误:

dl failure on line 685Error: failed /usr/local/jdk1.6.0_10/jre/lib/i386/client/libjvm.so, because /usr/local/jdk1.6.0_10/jre/lib/i386/client/libjvm.so: cannot restore segment prot after reloc: Permission denied

后来经过查询得知,是selinux的设置的问题。

解决办法如下:

1。打开/etc/selinux/config

2。把selinux=enforcing改为selinux=disabled

3。重启linux

时间: 2024-10-18 20:16:28

运行java -version报cannot restore segment prot after reloc: Permission denied的相关文章

运行sqlplus时遇到cannot restore segment prot after reloc: Permission denied

运行sqlplus时遇到cannot restore segment prot after reloc: Permission denied,网上说可以吧SELinux关掉,但是我看了下我的系统已经关掉了,具体是编辑/etc/sysconfig/selinux,把SELINUX=enforcing一行注释掉,然后新加入一行:SELINUX=disabled,但是我这样做了以后,问题依旧,后来高手告诉我执行如下命令就行:chcon -t texrel_shlib_t /opt/app/oracle

cannot restore segment prot after reloc: Permission denied

编辑/etc/selinux/config,找到这段:# 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. # disab

lsnrctl: .... cannot restore segment prot after reloc: Permission denied

cannot restore segment prot after reloc: Permission denied Table of Contents 1. 错误信息 2. 解决方法 1 错误信息 $lsnrctl start lsnrctl: error while loading shared libraries: /u01/oracle/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission d

Centos7 JDK安装过程中 解决java -version 报错: bash: /home/jdk1.8.0_161/bin/java: Permission denied

1.执行Linux命令 -----vim /etc/profile  编辑profile  文件,在里面添加: #set java enviroment JAVA_HOME=/opt/JavaHome/jdk1.8.0_171JRE_HOME=/opt/JavaHome/jdk1.8.0_171/jreCLASS_PATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/libPATH=$PATH:$JAVA_HOME/bin

【转】运行java -version命令时出现错误及解决

转载地址:http://blog.sina.com.cn/s/blog_50f21fed01012sf2.html     按照上一篇的步骤配置JAVA_HOME.CLASSPATH和Path三个变量后,测试时执行 java -version出现如下错误:(执行javac命令和HelloJava.java都无错) Registry key 'Software/JavaSoft/Java Runtime Environment/CurrentVersion'  has value '1.7', b

idea 14运行java工程报错-Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match.

报错信息:Disconnected from the target VM, address: '127.0.0.1:59770', transport: 'socket' -Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match. 把idea升级到最新版本或者把maven降级到3.1.1就好了

浏览器运行java插件报错:Algorithm constraints check failed: MD5withRSA

今天使用kvm管理机房机器的时候发现一只连不上,报以下错误: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Algorithm constraints check failed: MD5withRSA 我确认我已经把域名添加到例外了,但是还是不行.之前是可以的,同事现在也可以,可能是最近我更新过. goog

java学习-IDEA运行java程序报错

问题1: 解决办法:依次执行如下两步   问题2: 解决办法:如下两项版本应保持一致 原文地址:https://www.cnblogs.com/wang-mengmeng/p/11689569.html

kvm install 报错could not open disk imageXXX: Permission denied

centos6.6挂载ntfs分区后,在ntfs分区上建立虚拟机: virt-install --name=centos6.5 --ram=1024 --vcpus=2 -f centos6.5.raw -s 20 -l /media/data/iso/CentOS-6.6-x86_64-bin-DVD1.iso 时报错: ERROR    internal error process exited while connecting to monitor: char device redirec