我一直在試圖讓視頻遊戲「我的世界」的一個自動化系統正常工作。我必須自己編譯它,並且在遵循指南之後,我在使用ANT運行build.xml時得到了這個結果。下面是代碼和錯誤。無法找到javac
Buildfile: C:\Users\Arm\workspace\DarkBot\build.xml
init:
clean:
[delete] Deleting directory C:\Users\Arm\workspace\DarkBot\bin
compile:
[mkdir] Created dir: C:\Users\Arm\workspace\DarkBot\bin
BUILD FAILED
C:\Users\Arm\workspace\DarkBot\build.xml:21: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files (x86)\jre1.8.0_25"
我在做什麼錯?另外,我可以確保JAVA_HOME指向正確的區域,如錯誤消息中所建議的。
概念失敗:JRE不等於JDK。 – Raptor
我該如何解決這個問題?感謝您的快速回復。編輯:有更好的答案。 – GPP