File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Can't Start Application Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Can Watch "Can New topic

Can't Start Application Server

J Miller
Ranch Hand

Joined: Oct 21, 2010
Posts: 79
I have both a Tomcat 6.0 and a JBoss 5.0 server set up in Eclipse, but I'm unable to start either of them. When I try to start my servers, I get this:

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

I originally just had the Tomcat server, and when I couldn't start that I decided to try JBoss, same result. I found what looked like a fix on this web site, but that solution didn't work for me.

Has anybody else here come across this?
Peter Johnson

Joined: May 14, 2008
Posts: 5852

Wow, that is sort of a key class to have missing! What OS are you running and what JVM or JDK are you using to run Eclipse? Also, do you have JAVA_HOME set, and if so tho what? I suspect that Tomcat and JBoss AS are picking up stray java executable and it can't find its rt.jar file.

JBoss In Action
J Miller
Ranch Hand

Joined: Oct 21, 2010
Posts: 79
OK, sorry for delayed reply.

I double-checked and I did NOT have the JAVA_HOME set up. I set that up and I'm afraid I'm still having the same problem. Here's what I've done so far:

  • verified that my JAVA_HOME is set correctly
  • Verified that my PATH is set correctly
  • Reinstalled JBOSS & Tomcat

  • I'm running Windows 7 64-bit, with eclipse Helios (service release 2), and Java 6 Update 26 (64-bit). Eclipse and the web servers DID work fine at one time, a couple weeks ago, so I'm not sure what happened.

    I'm downloading Eclipse again now, to see if perhaps something got corrupted.
    J Miller
    Ranch Hand

    Joined: Oct 21, 2010
    Posts: 79
    OK, I set up Eclipse again with a fresh download, and now everything's working like a champ. Not sure what went wrong before, but as long as it's working now I'm happy.

    Thanks for the help!

    Oh by the way, my coworker has your book and loves it. He's the one that recommend I try JBOSS.
    I agree. Here's the link:
    subject: Can't Start Application Server
    It's not a secret anymore!