Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error While Starting tomcat

 
karthik manick
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting the following error while running a simple Jsp "java.lang.NoClassDefFoundError: sun/tools/javac/Main
"
. I m using JDK7 and Tomcat 4....Please help...
 
Rob Spoor
Sheriff
Pie
Posts: 20610
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest you first try updating your Tomcat. You're using the latest JDK yet your Tomcat is years old.

You should also consider setting the JAVA_HOME environment variable to your JDK's root folder.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic