How to install and compile Bukkit/Craftbukkit for Linux(Repost, sorta)

Discussion in 'Bukkit Help' started by ScytheX10, Jan 10, 2011.

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

    ScytheX10

    Hi. I posted this in the "Getting started with craftbukkit/bukkit" thread. I just want to re-post it as a thread so it will help people in the future
    This is primarily for Debian environments with sudo enabled. But it can work for other Linux systems, replace sudo with being root, or replace apt-get with yum etc.

    Code:
    sudo apt-get install git
    
    sudo apt-get install maven2
    
    cd
    
    mkdir bukkit
    
    mkdir craftbukkit
    
    cd bukkit
    
    (run as root in non-sudo environments)
    
    sudo git init
    
    sudo git pull git://github.com/Bukkit/Bukkit
    
    sudo mvn clean install
    
    cd ..
    
    cd craftbukkit
    
    sudo git init
    
    sudo git pull git://github.com/Bukkit/CraftBukkit
    
    sudo mvn clean package
    Both compiles will be in the target directory EDIT: of their respective directories.
    Alternatively you can grab the compiled versions from:
    http://hudson.lukegb.com/job/Bukkit/
    http://hudson.lukegb.com/job/CraftBukkit/
     
  2. Offline

    woodzy

    ok im soo noob a t this but, i have a linux server and it has java ready to go i just cant start craftbukkit =(
    the error that i receve is as follows
    craft: line1: @ECHO: command not found
    craft: line2: IF: command not found
    craft: line3: IF:command not found
    craft: line5: PAUSE: command not found

    how can i fix this? linux server, craftbukket is in a folder called minecraft
     
  3. Offline

    Grum Bukkit Team Member

    Don't get maven2 :( .. i'm so tempted to break backwards compat now.
     
  4. Offline

    kwg

    You are using the windows bat file in linux. try:

    Code:
    #!/bin/bash
    cd "${0%/*}"; java -Xms1024M -Xmx1024M -jar craftbukkit-0.0.1-SNAPSHOT.jar nogui
    
    
     
Thread Status:
Not open for further replies.

Share This Page