2011-02-08 4 views
0

저는 UNIX에 익숙하지 않고 CraftBukkit을 사용하여 Minecraft Server를 실행하려고합니다.Craftbukkit : mvn 클린 설치 오류

이것은 내가 무슨 짓을 :
$ git clone git://github.com/Bukkit/CraftBukkit.git
$ cd CraftBukkit
$ mvn clean install

이것은 내가 오류입니다 ...

[email protected]:~/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] ------------------------------------------------------------------------ 

사과 정말 간단하고 확실한 해결책이 있다면.

+1

"echo $ JAVA_HOME"및 "java -version"의 출력을 게시 할 수 있습니까? –

답변