Ant build not working: unable to find a javac compiler

后端 未结 8 2484
故里飘歌
故里飘歌 2020-12-15 05:46

I am trying to run some Java EE examples. Ant is suggesting: Perhaps JAVA_HOME does not point to the JDK. It is currently set to \"C:\\Program Files\\Java\\jre7

8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-15 06:18

    Quick work around for the same is

    Copy C:\Program Files\Java\jdk1.7.0_03\lib\tools.jar to C:\Program Files\Java\jre7\lib\

    This exception is coming because JAVA_HOME is being set as C:\Program Files\Java\jre7 and Ant is not able to find tools.jar in it.

提交回复
热议问题