aspose file tools*
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
Author

Can't Start Application Server

J Miller
Ranch Hand

Joined: Oct 21, 2010
Posts: 67
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
author
Bartender

Joined: May 14, 2008
Posts: 5842
    
    7

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: 67
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: 67
    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: http://aspose.com/file-tools
     
    subject: Can't Start Application Server