gpt4 book ai didi

java - Craftbukkit : mvn clean install error

转载 作者:行者123 更新时间:2023-12-01 15:56:35 26 4
gpt4 key购买 nike

我对 UNIX 相当陌生,我正在尝试使用 CraftBukkit 来运行我的 Minecraft 服务器。

这就是我所做的:
$ git clone git://github.com/Bukkit/CraftBukkit.git
$ cd CraftBukkit
$ mvn clean install

这是我收到的错误...

sam@qntm:~/CraftBukkit$ mvn clean install                                       
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building CraftBukkit
[INFO] task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory /home/sam/CraftBukkit/target
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 133 source files to /home/sam/CraftBukkit/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
Unable to locate the Javac Compiler in:
/usr/lib/jvm/java-6-openjdk/jre/../lib/tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.


Unable to locate the Javac Compiler in:
/usr/lib/jvm/java-6-openjdk/jre/../lib/tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Feb 08 17:42:57 MSK 2011
[INFO] Final Memory: 12M/151M
[INFO] ------------------------------------------------------------------------

如果有一个非常简单和明显的解决方案,我们深表歉意。

最佳答案

确保您的 JAVA-HOME 变量设置为正确的路径。这里介绍如何正确设置http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/

关于java - Craftbukkit : mvn clean install error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4934535/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com