solaris10上设置java_home问题

ylm77ojn
solaris10上设置java_home问题

以root登陆,默认是使用的Bourne Shell,请问在哪个文件中设置java_home
我在etc/profile中设置java_home后,reboot后登陆总提示-sh:java_home=×××不是一个标识符
启动tomcat的startup.sh时,报:The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program
java-version后,显示的是正确的jdk1.4

briangao
It is because you used the wrong syntax: export java_home=xxx
This syntax doesn't work in Bourne shell

Use: java_home=xxx ; export java_home
上一篇:ChinaUnix.net 下一篇:ftp