Ant build not working: unable to find a javac compiler

后端 未结 8 2421
故里飘歌
故里飘歌 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:02

    In windows, go to computer properties, advanced system settings, advanced, environment variables

    Add a system variable called "JAVA_HOME" set its folder to your JDK location in my case "C:\Program Files\Java\jdk1.7.0_51"

    Close command prompt, reopen it and it should work now.

提交回复
热议问题