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

后端 未结 24 947
北恋
北恋 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 16:56

    If you have JAVA_HOME set but there's a typo in it, you will also see the bogus reference to a jre6 path.

提交回复
热议问题