Could not initialize class error

Discussion in 'Bukkit Help' started by SammoWammo, Jun 5, 2012.

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

    SammoWammo

    I downloaded the current CraftBukkit update, 1.2.5 R3.0, and created a start file. I renamed the jar, and renamed the name in the start file. I then opened the server, but I got an error. It started to load the recipes and achievements, but then came up with this error:

    182 recipes
    27 achievements
    java.lang.NoClassDefFoundError: Could not initialize class org.fusesource.jansi.
    internal.Kernel32
    at org.fusesource.jansi.internal.WindowsSupport.getConsoleMode(WindowsSu
    pport.java:50)
    at jline.WindowsTerminal.getConsoleMode(WindowsTerminal.java:176)
    at jline.WindowsTerminal.init(WindowsTerminal.java:80)
    at jline.TerminalFactory.create(TerminalFactory.java:93)
    at jline.TerminalFactory.get(TerminalFactory.java:151)
    at jline.console.ConsoleReader.<init>(ConsoleReader.java:140)
    at jline.console.ConsoleReader.<init>(ConsoleReader.java:126)
    at net.minecraft.server.MinecraftServer.<init>(MinecraftServer.java:94)
    at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:624)
    at org.bukkit.craftbukkit.Main.main(Main.java:140)
    Press any key to continue . . .


    Can anybody help me with this?
     
  2. Offline

    Forgd

    I am getting this same problem.
     
  3. Offline

    Forgd

    Aha! I found a solution. You need to add a line of code to your batch file.

    Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar --nojline
    PAUSE
     
    MedalDaddy66 and TheGurw like this.
  4. Offline

    TheGurw

    Fixed it wonderfully, thanks!
     
  5. Offline

    TnT Retired Staff

  6. Offline

    MedalDaddy66

    THANK YOU SO MUCH
     
  7. Offline

    Santushi

    the system can not find the stores paths
    :mad:
     
  8. Offline

    Santushi

  9. Offline

    doulags

    it cant find the path specified
     
  10. Offline

    doulags

     
Thread Status:
Not open for further replies.

Share This Page