我从名为
Rhomobile Beginner's Guide
Abhishek Nalwaya
Published Jul 2011
上面page 18
说:
在您的环境变量 PATH 中添加JAVA_HOME
和。JAVA_HOME/bin
要在 PATH 中添加它,请单击系统属性的高级选项卡中的环境变量。
在系统变量中选择路径并将和添加JAVA_HOME
到JAVA_HOME/bin
文本框,然后单击确定。
价值应该是多少?
It will let you and other applications run Java tools without having to type the whole path.
I disagree about adding JAVA_HOME; I only have JAVA_HOME/bin in my PATH.
Tomcat requires that JAVA_HOME be set properly in order to operate; so do some other Java EE app servers. (I believe WebLogic needs it.)
The value should be the install directory for your JRE or JDK,
Browse your 'program files' folder for a java folder, should look something like:
C:\Progra~1\Java\jdk1.6.xx\
There will be a directory called bin inside it.