Ant build not working: unable to find a javac compiler

后端 未结 8 2485
故里飘歌
故里飘歌 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 05:56

    For eclipse

    • Right Click build.xml ---> Build path ---> configure buildpath ---> select libraries tab
    • click "Add library" ---> double click on [jre system library ] ---> environments ---> installed jres ---> Add ---> standard vm
    • click on directory ---> Browse upto jdk [C:\Program Files\Java\jdk1.7.0_01]
    • finish
    • change the selection jre to jdk ---> click ok

提交回复
热议问题