Java - NoClassDefound

Discussion in 'Bukkit Help' started by colefrick, Jun 22, 2013.

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

    colefrick

    Here's the screenshot....It doesn't save in the logs or i would show it all...

    [​IMG]
     
  2. you haven't specified an xms value. add -xms512m after "java"
     
  3. Offline

    colefrick

    Shall try...Be right back

    Also
    This is on a VPS!

    Now we have a new error.... I did edit the path for jre7 instead of jre6..
    [​IMG]

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 2, 2016
  4. try this. put it into a text document and save it as run.bat in the same folder you have craftbukkit,jar saved.
    Code:
    @Echo OFF
    :start
     
    Set jarname=craftbukkit.jar
     
    Set MinRam64=1G
    Set MaxRam64=4G
    Set MinRam32=512M
    Set MaxRam32=2G
     
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    color 7
    cls
     
    if exist {C:\Program Files\Java\jre7\bin\java.exe} (
    color A
    Echo.
    Echo 64 Bit mode
    ping 1.1.1.1 -w 1 >NUL
    cls
    color 7
    "C:\Program Files\Java\jre7\bin\java.exe" -Xms%MinRam64% -Xmx%MaxRam64% -jar %jarname%
    goto end
     
    ) else (
     
    color C
    Echo.
    Echo 32 bit mode
    ping 2.2.2.2 -w 1 >NUL
    cls
    color 7
    "C:\Program Files (x86)\Java\jre7\bin\java.exe" -Xms%MinRam32% -Xmx%MaxRam32% -jar %jarname%
    goto end
    )
     
    :end
    cls
    color E
    Echo.
    Echo STOPPED! CLOSE NOW TO STOP FULLY!
    ping 1.1.1.1 -w 5 >NUL
    ping 2.2.2.2 -w 5 >NUL
    goto start
     
  5. Offline

    colefrick

    You almost crashed my VPS! The thing kept spamming this:
    [​IMG]

    But with all this "TO STOP NOW" and stuff...
     
  6. it wont crash your server. its a simple loop with a 5 second delay. it means your VPS isnt working properly.
    all that batch file does is looks to see if you have java 7 64 bit and starts the server, if not it defaults to java 7 32 and starts the server.

    open the file in notepad and change the line Set jarname=craftbukkit.jar, replacing craftbukkit.jar with the name of your craftbukkit.jar file (e.g. craftbukkit-1.5.2-R0.1.jar)
     
  7. Offline

    colefrick

    What will that do then?

    EDIT:
    It says "Ping" is not a recognized command
     
  8. ok, lets go back to basics...
    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    cls
    java -Xms1G -Xmx4G -jar craftbukkit.jar
    pause
     
  9. Offline

    colefrick

    Now i can understand some of what it's telling me....

    EDIT: GOT IT! Thank you![​IMG]
     
  10. you dont have java 64 bit or 4GB RAM to spare.
    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    cls
    java -Xms1G -Xmx2G -jar craftbukkit.jar.jar
    pause
     
  11. Offline

    Hoolean

    Hey there! Your initial error was not caused by -Xmx1024M, you can leave that there, it's fine.

    Instead, read this thread as it covers many simple problems such as this one and you will find the answer there :)
     
Thread Status:
Not open for further replies.

Share This Page