Solved Error Creating Bukkit Server, Please Help

Discussion in 'Bukkit Help' started by NLC823, Oct 21, 2014.

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

    NLC823

    I have a windows 8 laptop (64 bit) and I have searched hard and long for a code that works. I typically get a error that says...

    Exception in thread "main" java.lang.NullPointerException
    at sun.launcher.LauncherHelper.getMainClassFromJar(Unknown Source)
    at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
    Press any key to continue . . .

    When I press a key the window closes. Can somebody please help me?
     
  2. Offline

    Gamecube762

    Mind posting your startup script and check the /logs folder. if there is anything in the logs, mind posting it?
     
  3. Offline

    NLC823


    Im not certain of what the script or the logs folder is, but i will do my best.

    Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE

    this is the code I use to run my game (obviously it doesn't work), but I'm not sure where I can find the logs folder. If you could be a little more descriptive, then I could get that information to you.(but thanks for trying to help me)
     
  4. Offline

    Gamecube762

    No worries, the code you posted is your startup script. Try updating Java, here is the latest version.

    After updating, try this as your startup script:
    Code:
    @Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre8\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE
     
  5. Invisible

    DrPyroCupcake

    Just out of curiosity why did you put that link in?
     
  6. Offline

    Gamecube762

    DrPyroCupcake Not everyone's Java updates automatically and not everyone knows how to manually update. A link to the latest version works best as Java will automatically handle the old versions when installing.
     
  7. Invisible

    DrPyroCupcake

    @Echo
     
    Gamecube762 likes this.
  8. Offline

    tcvs

    DrPyroCupcake It will automatically add the user when using the @ sign.
     
  9. Offline

    NLC823

    I tried that and now it says
    system cannot find path specified
    press any key to continue. . .
     
  10. Offline

    tcvs

    NLC823 have you tried just using a basic start up script?

    Code:
    java -Xmx1024M -jar craftbukkit.jar -o true
    PAUSE
     
  11. Offline

    NLC823


    I tried that one and now I get yet another new error message:

    C:\Users\Nicholas\desktop\minecraft server>java -Xmx1024M -jar craftbukkit.jar -
    o true
    no main manifest attribute, in craftbukkit.jar

    C:\Users\Nicholas\desktop\minecraft server>PAUSE
    press any key to continue. . .
     
  12. Offline

    tcvs

    NLC823 ah ha. We have found your problem. You are trying to launch Bukkit and not CraftBukkit. Bukkit is the API for all the plugins and stuff. CraftBukkit is the server itself the runs the minecraft server and the API. So you will have to find a download for craftbukkit if you want to run a server

    PS - Theoretically there are no legal links.
     
  13. Offline

    NLC823


    Thank you!! I will look for that!
     
  14. Offline

    tcvs

    NLC823 If you could mark the thread as solved that would be great. Just edit the prefix. thx
     
  15. Offline

    NLC823

    lol now I find out the server downloads were taken down for legal reasons, what a shame...
     
Thread Status:
Not open for further replies.

Share This Page