java   在Linux中配置好了java 环境变量,在执行的时候出现动态库权限提示:

Error: dl failure on line 864
Error: failed /home/java/jdk1.7.0_21/jre/lib/i386/client/libjvm.so, because /home/java/jdk1.7.0_21/jre/lib/i386/client/libjvm.so: cannot restore segment prot after reloc: Permission denied

 

解决:
这是因为SELINUX的问题,需要关闭SELINX,执行:/usr/sbin/setenforce 0