当前位置: 技术问答>linux和unix
JDK出错,各位朋友来帮帮忙,郁闷了2天了
来源: 互联网 发布时间:2017-02-13
本文导语: 执行文件内容如下 #!/bin/sh cd /root/pwserver/my_authd/build export HOME=/usr/java/jdk1.6.0_12/ export PATH=$HOME/bin:$PATH #export PATH=$PATH:$HOME/bin:/usr/java/jdk1.6.0_12/bin export CLASSPATH=.:/usr/java/jdk1.6.0_12/lib/dt.jar:/usr/java/jdk1.6.0_12/lib/tools.jar:/us...
执行文件内容如下
提示错误
Error: no `server
' JVM at `/usr/java/jdk1.6.0_12/jre/lib/i386/server
/libjvm.so'.
#!/bin/sh
cd /root/pwserver/my_authd/build
export HOME=/usr/java/jdk1.6.0_12/
export PATH=$HOME/bin:$PATH
#export PATH=$PATH:$HOME/bin:/usr/java/jdk1.6.0_12/bin
export CLASSPATH=.:/usr/java/jdk1.6.0_12/lib/dt.jar:/usr/java/jdk1.6.0_12/lib/tools.jar:/usr/java/jdk1.6.0_12/lib/mysql-connector-java-5.0.8-bin.jar
export JAVA_HOME=/usr/java/jdk1.6.0_12/
while true; do
java -cp ../lib/jio.jar:../lib/application.jar:../lib/commons-collections-3.1.jar:../lib/commons-dbcp-1.2.1.jar:../lib/commons-pool-1.2.jar:../lib/commons-logging-1.0.4.jar:../lib/log4j-1.2.9.jar:.:$CLASSPATH authd table.xml
sleep 2
done
提示错误
Error: no `server
' JVM at `/usr/java/jdk1.6.0_12/jre/lib/i386/server
/libjvm.so'.
|
环境变量在/etc/profile中设置的