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

后端 未结 24 983
北恋
北恋 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:12

    I was facing the same problem, making the executable property in the javac tag to be set to the location of javac.exe resolved the problem for me. This resolved the problem

    
    

提交回复
热议问题