官网上下的JDK1.5,解压到usr/local下
设置/etc/profile如下:
JAVA_HOME=/usr/local/jdk1.5.0_08
JRE=/usr/local/jdk1.5.0_08
CLASSPATH=.JAVA_HOME/libJRE/lib
PATH=$PATHJAVA_HOME/binJRE/bin
export JAVA_HOME JRE CLASSPATH PATH
运行$JAVA_HOME/jre/bin/ControlPanel出现以下错误:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/jdk1.5.0_0 5/jre/lib/i386/libdeploy.so: /usr/local/jdk1.5.0_05/jre/lib/i386/libdeploy.so: c annot restore segment prot after reloc: Permission denied
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
at java.lang.Runtime.load0(Runtime.java:769)
at java.lang.System.load(System.java:967)
at com.sun.deploy.config.UnixConfig.loadLibDeploy(UnixConfig.java:41)
at com.sun.deploy.config.UnixConfig.(UnixConfig.java:26)
at com.sun.deploy.config.ConfigFactory.newInstance(ConfigFactory.java:11 )
at com.sun.deploy.config.Config.getInstance(Config.java:564)
at com.sun.deploy.config.Config.(Config.java:580)
at com.sun.deploy.util.DeployUIManager.setLookAndFeel(DeployUIManager.ja va:102)
at com.sun.deploy.panel.ControlPanel.(ControlPanel.java:30)
网上也倒有一两个同样错的帖子,请问都怎么解决的?