How to Install Bukkit (Newb-Friendly!)

Discussion in 'Bukkit Help' started by TheArcher, Jan 7, 2011.

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

    Selbram

    You don't have to use bukkitmain at all if you have craftbukkit. It is built in.
     
  2. Offline

    tekac

    @Selbram Thanks!!
    --- merged: Jan 16, 2011 1:57 AM ---
    @Selbram Thanks!!
     
  3. Offline

    TheArcher

    Selbram, would you mind providing a simple definition of the purpose of "Bukkit"?
     
  4. Offline

    Selbram

    Bukkit is the api interface to a server. Craftbukkit is the implementation of bukkit + server to create an interface for plugins.
     
  5. Offline

    TheArcher

    Ah, so CraftBukkit comes with Bukkit. Bukkit is just a part of the server created for plugin developers?
     
  6. Offline

    Selbram

    It's the other way around. :) bukkit was created first as the api interface. Craftbukkit is the server software with bukkit included. When you create plugins you use bukkit.
     
  7. Offline

    TheArcher

    Great, thanks for the information. I just wanted to clear that up.

    Update: The tutorial now has Mac OS X support!
     
  8. Hello! I can't seem to start craftbukkit. When I click the .bat file, it opens, and the last line states: "Could not find the main class: org.bukkit.craftbukkit.Main. Program will now exit." Help?
     
  9. Offline

    The Lying tree


    Same problem here. Any ideas?
     
  10. Offline

    xCrAzYbOy

    Yeah I'm also getting:

    Code:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/Main
    Caused by: java.lang.ClassNotFoundException: org.bukkit.craftbukkit.Main
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    Could not find the main class: org.bukkit.craftbukkit.Main. Program will exit.
    
    :|
     
  11. Offline

    thatguy8007

    I followed all the Mac instructions but when click the file it opens up the Terminal but nothing else. no other files appear.
     
  12. Offline

    dnessman

    i followed the instructions for setup on Windows but when i run the .bat file i get the message
    "error occurred during initialization of UM
    Could not reserve enough space for object heap
    press any key to continue..."
    in the cmd window.
    does that just mean i need to clear up space on the hard drive, or is there a deeper problem than that?
     
  13. Offline

    NickBrahz

    Ok umm i just started using Bukkit, i went to connect to my server for the first time and i keep getting "Internal exception: java.io.UTFDataFormatException: malformed input around byte 4

    Edit: Ok nevermind, redid the tutorial and now is working like a beaut
     
  14. Offline

    InhumanSkills



    THIS IS WRONG DON'T DO THIS x86 is your normal 32 bit location!

    I have a nice toturial on how to CORRECTLY modify your .bat file

    http://forums.bukkit.org/threads/bat-file-explained.602/
     
  15. Offline

    Selbram

    It is not wrong. It is just not 64-bit.

    Sel
     
  16. Offline

    InhumanSkills

    Well yea but he said it was the 64 bit location

    "
    x64:

    Code:
    @echo off
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xms1024M -Xmx1024M -jar craftbukkit-0.0.1-SNAPSHOT.jar
    pause
    "
     
  17. Offline

    Selbram

    It is common for x64 Java to not be installed on a x64 system. This is the easy setup option.
     
  18. Offline

    philboy11

    On mac and getting this message in terminal:
    Unable to access jarfile craftbukkit-0.0.1-SNAPSHOT.jar
    logout
    (And yes the file is i the same folder as the server starter.sh)
     
  19. Offline

    TheArcher

    You have to make sure that the CraftBukkit ".jar" file is named exactly "craftbukkit-0.0.1-SNAPSHOT.jar". According to that error, it can't find it because it isn't there or it's renamed.
     
  20. Offline

    nanaki658

    got it working now. i had 32bit java...and couldnt get 64 bit since firefox was only 32bit....to get the java site to let me download 64bit java i had to open a 64 bit browser then download the correct version. removed the x86 and altered my ram allocation. presto, works like a charm. thanks muchly for the help!
     
  21. Offline

    dnessman

    okay, i got the server up and running by running the .bat file, but now I'm not able to log on. In all honestly, im not sure if I'm using the right IP or not to get in. How do i find out what that is? Is it just the host computers public IP or something different?
     
  22. Offline

    TheArcher

    http://www.whatismyip.com/

    You don't use your IP to get onto your server, if you are running the server you either use "localhost" or "127.0.0.1".
     
  23. Offline

    timmystwin

    i copied your tutorial for windows 64 bit exactly, and all i got was this


    Exception in thread "main" java.lang.NoClassDefFoundError: org/bukkit/craftbukki
    t/Main
    Caused by: java.lang.ClassNotFoundException: org.bukkit.craftbukkit.Main
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    Could not find the main class: org.bukkit.craftbukkit.Main. Program will exit.
    Press any key to continue . . .

    and my start.bat is

    @echo off
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xms512M -Xmx512M -jar craftbukkit.jar
    pause

    And i have a copy of craftbukkit.jar in that directory.

    Any suggestions?​
     
  24. Offline

    dnessman

    Sorry, maybe I'm just not understanding something, but none of those is letting me in. The minecraft client keeps giving me error messages, like "connection timed out: connect" or "unknown host: **.***.***.***:25565"
     
  25. Offline

    TheArcher



    Delete your "world" folder.

    The server is either not online or there are unnecessary characters, such as spaces, in the IP box.
     
  26. Offline

    Dosensteck

    Well, I had a problem and noticed that (x86), so I changed the path to "C:\Program Files\...\...". Then the problem was gone^^
     
  27. Offline

    thatguy8007

    i made extra sure that the file was named 'craftbukkit-0.0.1-SNAPSHOT.jar' and it still doesnt work
     
  28. Offline

    philboy11

    Yep its named correctly. Is it supposed to be in the desktop or the same folder?
     
  29. Offline

    TheArcher

    The same folder, as described in the tutorial.
     
  30. Offline

    Toasty

    I had a similar error when I first tried out craftbukkit. Turned out the file I downloaded ended up being corrupt, so I just re-downloaded and it worked fine.

    On a side note, as a consumer, if you run Ubuntu Linux, you'll never have to worry about 32-bit this and 64-bit that. It'll download the proper version of Java for you when you go to download it. =D
     
Thread Status:
Not open for further replies.

Share This Page