Why does ANT tell me that JAVA_HOME is wrong when it is not?

后端 未结 24 982
北恋
北恋 2020-12-07 16:49

I get the error:

C:\\dev\\ws\\springapp\\build.xml:81: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not

24条回答
  •  庸人自扰
    2020-12-07 17:15

    Make sure you do not use the trailing semicolon: This will not work:

    set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_29;
    

    This will:

    set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_29
    

提交回复
热议问题