我在unix机器上装好java了,运行java -version结果如下:
[mobpay@NMIS ~]$ java -version
java version "1.4.2"
gcj (GCC) 3.4.6 20060404 (Red Hat 3.4.6-3)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
但是我输入javac命令的时候结果却是这样的:
[mobpay@NMIS ~]$ javac
-bash: javac: command not found
为什么会这样,我应该怎样做?
------解决方案--------------------
那lz就把环境变量设置一下吧
网上有n多资料说明了如何在unix下设置java的环境变量
可以去参考一下