Ant “JAVA_HOME does not point to the JDK” - but it does

前端 未结 6 860
终归单人心
终归单人心 2020-12-31 01:23

I cannot run my Ant build.xml since I updated to java 1.7.0_52 (or there about). I have been running it for years through Eclipse locally on my Windows 7 laptop - but with t

6条回答
  •  庸人自扰
    2020-12-31 01:55

    Sorry for the unearthing,

    I had the same problem, my solution doesn't need any modification in environment variables, and works for a recent JDK where the tools.jar can't be found.

    Just go in the small down-arrow next to the ant run button Then click "Configure external tools" Then in JRE tab Select a JDK installed on your computer, not a JRE, no problems if the selected JDK is not the same JDK/JRE as in your project.

    It should be work now.

提交回复
热议问题