Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can't Start Application Server

 
J Miller
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
J Miller
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
    Posts: 80
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic