compile bukkit/craftbukkit

Discussion in 'Plugin Development' started by matter123, Jul 10, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    matter123

    i followed a tutorial and installed maven and egit copied the respiratory imported the the projects but when i try to compile bukkit i get this
    Show Spoiler

    Code:
    [INFO] Scanning for projects...
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Bukkit 0.0.1-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ bukkit ---
    [INFO] Deleting C:\Users\admin\git\Bukkit\target
    [INFO]
    [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ bukkit ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory C:\Users\admin\git\Bukkit\src\main\resources
    [INFO]
    [INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ bukkit ---
    [INFO] Compiling 293 source files to C:\Users\admin\git\Bukkit\target\classes
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 1.437s
    [INFO] Finished at: Sun Jul 10 12:04:50 PDT 2011
    [INFO] Final Memory: 3M/15M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project bukkit: Compilation failure
    [ERROR] Unable to locate the Javac Compiler in:
    [ERROR] C:\Program Files\Java\jre6\..\lib\tools.jar
    [ERROR] Please ensure you are using JDK 1.4 or above and
    [ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
    [ERROR] In most cases you can change the location of your Java
    [ERROR] installation by setting the JAVA_HOME environment variable.
    [ERROR] -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
    
    any pointer would be appreciated
     
  2. Offline

    ItsHarry

  3. Offline

    matter123

    i dont think that will help because of

    Code:
    C:\>java -version
    java version "1.6.0_22"
    Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
    Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)
    
    C:\>
     
  4. Offline

    ItsHarry

    Nvm then
     
  5. Offline

    needspeed10

    You need the JDK not just the JRE.
    http://www.oracle.com/technetwork/java/javase/downloads/index.html
     
  6. Offline

    matter123

    i do i have eclipse set up to point to the jdk
     
  7. Offline

    needspeed10

    Then it seems you have not set your JAVA_HOME properly.
    Code:
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project bukkit: Compilation failure
    [ERROR] Unable to locate the Javac Compiler in:
    [ERROR] C:\Program Files\Java\jre6\..\lib\tools.jar
    [ERROR] Please ensure you are using JDK 1.4 or above and
    [ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
    [ERROR] In most cases you can change the location of your Java
    [ERROR] installation by setting the JAVA_HOME environment variable.
     
  8. Offline

    matter123

    where should i point that too?
     
  9. Offline

    needspeed10

    You have to point to your JDK folder.
    For me its: C:\Program Files (x86)\Java\jdk1.6.0_24
     
  10. Offline

    matter123

Thread Status:
Not open for further replies.

Share This Page