Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I DON'T UNDERSTAND

 
Ken Tab
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello, I just installed tomcat 4.03 and I can't seem to view any jsp pages, specifically Hello.jsp . Here is the class path I defined in setclasspath.bat :
set CLASSPATH=.;C:\devel;C:\jakarta-tomcat-4.0.3\common\lib\servlet.jar
Below is the exception I keep getting, any suggestions?
root cause
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should remove the classpath entry from 'setclasspath.bat' and put these in you global classpath. The classpath should only look like this 'set CLASSPATH=%JAVA_HOME%\lib\tools.jar' in setclasspath.bat. Remembet to add JAVA_HOME to your global envionment too. Tomcat will then find what it need by it self...
To run JSP pages you need to have at least tools.jar from the JDK package.
/Rene
[ July 06, 2002: Message edited by: Rene Larsen ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic