I have some problem to set java home
on setEnv.bat from AjaxSwing
我在setEnv上设置java home有一些问题。蝙蝠从AjaxSwing
My JDK path:
我的JDK路径:
C:\Program Files\Java\jdk1.8.0_25
My AjaxSwing :
我的AjaxSwing:
C:\AjaxSwing4.3.3
from there I just set JAVA_HOME
and AJAXSWING_HOME
on setEnv.bat so, I have edited the setEnv.bat as follows
然后,我在setEnv上设置了JAVA_HOME和AJAXSWING_HOME。是的,我编辑过setEnv。蝙蝠如下
rem set JAVA_HOME="C:\Program Files\Java\jdk1.8.0_25"
rem set AJAXSWING_HOME=C:\AjaxSwing4.3.3
rem set JAVA_OPTS=
rem set KEEP_CURRENT_DIR=true
But The Command Prompt still Says
但是命令提示符仍然说
The JAVA_HOME environment variable is not defined
没有定义JAVA_HOME环境变量
1 个解决方案
#1
3
rem
is short for "remark" - it comments out the rest of the line in a batch script, so this snippet actually does nothing. Remove the rem
s on the lines with the relevant paths and you should be OK:
rem是“备注”的缩写——它在批处理脚本中注释其余的行,所以这个代码片段实际上什么都不做。用相关路径删除线上的rems,应该没问题:
set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_25
set AJAXSWING_HOME=C:\AjaxSwing4.3.3
#1
3
rem
is short for "remark" - it comments out the rest of the line in a batch script, so this snippet actually does nothing. Remove the rem
s on the lines with the relevant paths and you should be OK:
rem是“备注”的缩写——它在批处理脚本中注释其余的行,所以这个代码片段实际上什么都不做。用相关路径删除线上的rems,应该没问题:
set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_25
set AJAXSWING_HOME=C:\AjaxSwing4.3.3