Solved java/lang/NoClassDefFoundError: java/lang/Object

Discussion in 'Bukkit Help' started by Aced God, Apr 13, 2012.

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

    Aced God

    Hi,
    Just today, I updated my Java to the latest version. But when I tried to start up my home-run server, this is EVERYTHING I see in cmd:
    Code:
    Error occurred during initialization of VM
    java/lang/NoClassDefFoundError: java/lang/Object
    Press any key to continue . . .
    I have attempted to use the system restore to rollback my computer, but the error remained the same. I'm sure that this is a result of me updating Java (
    Recommended Version 6 Update 31)
    for 64 bit

    My Computer's Specs
    OS - Windows 7 64-bit
    Architecture and version for Java - Supposedly Version 6 Update 31, however, when I enter java - version, I recieve the SAME error as above.
    Wrappers - None
    CraftBukkit Vers - 1.2.5-R1.0

    I appreciate how people on bukkit help each other for nothing in return.

    ~Thanks in advanced
    Ace
     
  2. Offline

    andrewpo

    Post your start script please. Wrap it in [ code ] tags.
     
  3. Offline

    Aced God

    What exactly is my start script? I apologize for not knowing what one is. I have been on Bukkit for no longer than 2 weeks. If you mean want is shown when I click the .bat for starting up my server what I have posted is all I've seen. Nothing else.
     
  4. Offline

    andrewpo

    Do you have a "start.bat" or "run.bat" or "start.command" or "start.sh" file (or similar) that you run to get bukkit to start?
     
  5. Offline

    Aced God

    Oh, I see, here it is:
    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx3072M -Xms1024M -jar craftbukkit-1.2.5-R1.0.jar
    PAUSE
     
  6. Offline

    andrewpo

    Try taking the ' .jar ' off the end of the fourth line.
     
  7. Offline

    Aced God

    Code:
    Unable to access jarfile craftbukkit-1.2.5-R1.0
    Press any key to continue . . .
    This is what I get in CMD.

    How could updating my java affect this?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  8. Offline

    andrewpo

    I never said to update your java, the version you have should work fine.

    Delete your craftbukkit-1.2.3-R1.0.jar file

    Download this file - http://dl.bukkit.org/latest-rb/craftbukkit.jar

    Replace the contents of your start script with:
    ***IMPORTANT!!!! Remove the '***' from the first line of the start file contents below****
    Code:
    @***ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE
    
     
  9. Offline

    Aced God

    Just today, I updated my java, after updating my java, my CraftBukkit server started getting this problem.
     
  10. Offline

    andrewpo

    Are you running Java 7?


    Try using
    Code:
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    on the fourth line of your start file
     
  11. Offline

    Aced God

    No, I am using Java 6.[​IMG]
     
  12. Offline

    andrewpo

    As this doesn't seem to be a bukkit issue, could you try uninstalling Java completely and installing it again?
     
  13. Offline

    Aced God

    Is there supposed to be a folder named lang in there?
     
  14. Offline

    andrewpo

    As this doesn't seem to be a bukkit issue, could you try uninstalling Java completely and installing it again?
     
  15. Offline

    Aced God

    After reinstalling on CMD, I get this.
    Code:
    '"C:\Program Files\Java\jre6\bin\java.exe"' is not recognized as an internal or
    external command,
    operable program or batch file.
    Press any key to continue . . .
     
  16. Offline

    andrewpo

    Can you upload the contents of your current start bat file to pastebin.com please?
     
    Aced God likes this.
  17. Offline

    Aced God

  18. Offline

    andrewpo

    Your start file still references " craftbukkit-1.2.5-R1.0.jar "
    Did you download the latest craftbukkit from the link I gave you?
    Please do that, do not rename the file you download (it should be craftbukkit.jar), and change "craftbukkit-1.2.5-R1.0.jar" in your start script to "craftbukkit.jar"
     
  19. Offline

    Aced God

    I got my server working now. For some reason the newer versions of Java did not work, so I had to look around and I downloaded the old version of Java. Thanks for your help and time.
     
  20. Offline

    andrewpo

    Well at least you've got bukkit working, but not in the way we hoped.

    @ Bukkit staff members - Do you know what's going on and how to fix it?
     
  21. Offline

    personic

Thread Status:
Not open for further replies.

Share This Page