[TUTORIAL] Craftbukkit for Dummies

Discussion in 'Bukkit Help' started by rymate1234, Mar 11, 2011.

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

    rymate1234

    This is a series of Tutorials I'm doing to show people how to set up Craftbukkit on WINDOWS:
    Contents
    Tutorial 1 - Setting up a Craftbukkit server (this first post)
    Tutorial 2 - Installing a plugin (essentials)
    Tutorial 3 - Get permissions working
    Tutorial 4 - Multiworld!

    TUTORIAL 1 - SETTING UP A CRAFTBUKKIT SERVER
    1. Download Craftbukkit at http://ci.bukkit.org/job/dev-CraftB...rtifact/target/craftbukkit-0.0.1-SNAPSHOT.jar
    2. place it in a new folder
    3. open notepad and paste this into it:
    Code:
    @echo off
    java -Xincgc -Xmx1024M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -jar craftbukkit-0.0.1-SNAPSHOT.jar
    pause
    4. save that file as "start.bat" in the bukkit folder and select file type as "all files" (see picture)
    [​IMG]

    5. double click the file!

    Video:


    TroubleShooting -
    Java isnt seen as a program or batch file
    Try using this in your start.bat
    Code:
    @echo off
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xincgc -Xmx1024M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -jar craftbukkit-0.0.1-SNAPSHOT.jar
    pause
    OR
    Code:
    @echo off
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xincgc -Xmx1024M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -jar craftbukkit-0.0.1-SNAPSHOT.jar
    pause
     
  2. Offline

    TnT

    Use imgur.com for image hosting if you need - your current host isn't working for you.
     
  3. Offline

    rymate1234

    that isn't my picture :D

    edit - better?
     
  4. Offline

    TnT

    Then you can't use it. Its not showing up on your post anyway - so no point using it.
     
  5. Offline

    rymate1234

    i changed the picture to mine. It was a placeholder until i got a better picture anyway
     
  6. Offline

    Jotschie

    nice tutorial.
    But what if I want to start the server with more than 1GB RAM?
    If i type in more like 1536 MB or 2048 MB it says "Could not reserve enough space for object heap".
    But that's rubbish, my pc has enough RAM to handle that.
    What am I doing wrong? Can anyone help?
     
  7. Offline

    TheDaddyPeanut

    Doesnt work, console says java isnt seen as a program or batch file (I translated it from dutch for a little)
     
  8. Offline

    rymate1234

    How much ram does your PC have. Thats uually a sign there isn't enough
    [MERGETIME="1299912898"][/MERGETIME]
    i added in troubleshooting to the top post
    [MERGETIME="1299912997"][/MERGETIME]
     
  9. Offline

    Jotschie

    It is running with 2GB at the moment. Shouldn't I then be able to run the server with at least 1536 MB RAM?
     
  10. Offline

    rymate1234

    Not really, as part of that 2GB will be for the OS and any open applications.
    Before i got a VPS, o could only run 1GB on my 3Gb machine (which is windows 7 and isn't a server)
     
  11. Offline

    TheDaddyPeanut

    Did not work, still the long error
     
  12. Offline

    rymate1234

  13. Offline

    Wesley211

    Hey, i got a problem..

    When i try to open it with the .bat, it gives me 3 different things (I tried all 3 of them to start the server)

    Code:
    @echo off
    
    java -Xincgc -Xmx1024M -XX+UseConcMarkSweepGC -XX+UseParNewGC -XX+CMSIncrementalPacing -XXParallelGCThreads=2 -XX+AggressiveOpts -jar craftbukkit-0.0.1-SNAPSHOT.jar
    
    pause
    This one gives me
    ---------------------------------------------------------------------------------------------

    Code:
    @echo off
    
    %ProgramFiles(x86)%Javajre6binjava.exe -Xincgc -Xmx1024M -XX+UseConcMarkSweepGC -XX+UseParNewGC -XX+CMSIncrementalPacing -XXParallelGCThreads=2 -XX+AggressiveOpts -jar craftbukkit-0.0.1-SNAPSHOT.jar
    
    pause
    This one gives me
    (rough translation)

    ---------------------------------------------------------------------------------------------

    Code:
    @echo off
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xincgc -Xmx1024M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -jar craftbukkit-0.0.1-SNAPSHOT.jar
    pause
    This one gives me the error
    ---------------------------------------------------------------------------------------------

    Do you know how to fix this? :)

    Thanks!

    (Im running Windows 7 64 bit if u need to know)
     
  14. Offline

    woodzy

  15. Offline

    TheDaddyPeanut

    Yes its installed i have java but idk if i did it wrong i installed java for chrome 64 bit or something, coz my system is 64 bit. I put it in program files (x86) becasue java did it by himself
     
  16. Offline

    woodzy

    chrome? thats an OS now i thiught that was just a browser
     
  17. Offline

    rymate1234

    I'm using windows 7 64 bit, try this one
    Code:
    @echo off
    
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xincgc -Xmx1024M -XX+UseConcMarkSweepGC -XX+UseParNewGC -XX+CMSIncrementalPacing -XXParallelGCThreads=2 -XX+AggressiveOpts -jar craftbukkit-0.0.1-SNAPSHOT.jar
    
    pause
    on your second one, there was no slashes

    edit - well it did before i quoted it
     
  18. Offline

    Wesley211

    I've tried this one, still aint working.. Now it says "Unable to acces jarfile craftbukkit-0.0-1SNAPSHOT.jar"

    Got the newest java aswell, already tried that =P
     
  19. Offline

    rymate1234

    what is your bukkit .jar file called?
     
  20. Offline

    Wesley211

    Oh ofcourse,, changed the name and now i get this error:
    "Unrecognized option: -XX+UseConcMarkSweepGC
    Could not create the Java virtual machine."
    EDIT:
    Rymate,

    Its working this time, i dont know what happened :)

    Thanks anyways for the great tutorial
     
  21. Offline

    DionEngels

    Are you going to make Tutorial 2 in text? Is Tutorial 3 coming out soon?
     
  22. Offline

    XiverX

    can you please help me when i run the launcer it says that it failed to bind port plz help me i really want this
     
  23. Offline

    mughi

    if you have something in server.properties: server_ip =
    REMOVE IT. that should be blank

    check task manager for java.exe, kill it.

    if these suggestions do not work, please start a new topic in the support forum.
     
  24. Noun of the stuff i put in my batch file works. The cmd window opens then quickly closes.
     
Thread Status:
Not open for further replies.

Share This Page