Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Tomcat and the fly likes Tomcat Setup and a JSP question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Setup and a JSP question" Watch "Tomcat Setup and a JSP question" New topic
Author

Tomcat Setup and a JSP question

John Lincoln
Ranch Hand

Joined: Feb 11, 2003
Posts: 192
Hi,

I have installed Tomcat 5.0.28 sucessfully. I am trying to runa simple JSP. code is below

I have put the jsp in C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\myjspexamples.

But when say http://localhost:8080/myjspexamples/hello.jsp, i get the following error

I guess it does not find the java compiler. But i have set JAVA_HOME to point to JDK.

Do i need to do anything on Tomcat Configuration (i.e In the Tomcat Configuration window, on the Java tab, do i need to specify JAVA_HOME in the Java classpath.

Please throw some light.

thanks
[ September 27, 2006: Message edited by: John Lincoln ]
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9930
    
159

Whats the output of



from the command prompt


[My Blog] [JavaRanch Journal]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Also, how did you install Tomcat (.exe, .zip)?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tomcat Setup and a JSP question
 
Similar Threads
From JSP 1.2 to 2.0 problem
environmental variable issue
JAVA_HOME does not point to the JDK
With JBoss 4.2 and elipse 3.3
Struts Example not working!