小编GPP*_*GPP的帖子

找不到 javac

我一直在尝试建立一个让视频游戏《我的世界》运行的自动化系统。我必须自己编译它,在完全遵循指南后,我在使用 ANT 运行 build.xml 时得到了这个。下面是代码和其中的错误。


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"
Run Code Online (Sandbox Code Playgroud)

我究竟做错了什么?我还可以确保 JAVA_HOME 指向正确的区域,如错误消息中所建议的那样。

java eclipse apache ant

5
推荐指数
1
解决办法
9248
查看次数

标签 统计

ant ×1

apache ×1

eclipse ×1

java ×1