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

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

    Just set the JDK path from the below steps:

    1. Go to 'Run' ->External Tools -> External Tools Configuration

    2. -> Select 'JRE' Then from the DropDown list select the available JDK . ex. jdk1.8.0_25

提交回复
热议问题