> Hey guys, > > I just tried installing jdk 1.0.7 on my centos 5.6 box and I am getting a > permission denied error when I try to display the java version. > > > > [root@VIRTCENT09:/usr/lib] #ln -s /usr/lib/jdk1.7.0 /etc/alternatives/jdk > [root@VIRTCENT09:/usr/lib] #ln -s /usr/lib/jdk1.7.0/bin/java > /etc/alternatives/java > [root@VIRTCENT09:/usr/lib] #ln -s /etc/alternatives/java /usr/bin/java > [root@VIRTCENT09:/usr/lib] #java -version > Error: dl failure on line 875 > Error: failed /usr/lib/jdk1.7.0/jre/lib/i386/client/libjvm.so, because > /usr/lib/jdk1.7.0/jre/lib/i386/client/libjvm.so: cannot restore segment > prot after reloc: Permission denied > > > I tried opening up the permissions every step of the way along the path to > /usr/lib/jdk1.7.0/jre/lib/i386/client/libjvm.so but no luck so far. > > > I would certainly appreciate any advice you'd be willing to provide! It's running fine here with the Oracle rpms but I'm not using the alternatives stuff. I have export JAVA_HOME="/usr/java/default" and symlinks like so lrwxrwxrwx 1 root root 26 Aug 4 11:25 /usr/bin/java -> /usr/java/default/bin/java lrwxrwxrwx 1 root root 27 Aug 4 11:25 /usr/bin/javac -> /usr/java/default/bin/javac lrwxrwxrwx 1 root root 29 Aug 4 11:25 /usr/bin/javadoc -> /usr/java/default/bin/javadoc lrwxrwxrwx 1 root root 28 Aug 4 11:25 /usr/bin/javaws -> /usr/java/default/bin/javaws Regards, Simon _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos