• Post Reply Bookmark Topic Watch Topic
  • New Topic

new to jsp, quick question

 
Code Monk
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone. I'm new to using JSP and just picked up the book "Pro JSP 3.0" the other day. I'm trying to run one of the first jsp examples, but I keep getting an exception error: Unable to compile class for JSP. Unable to find a javac compiler, maybe JAVA_HOME does not point to the JDK.

Ok, simple enough problem. I checked to make sure that my JAVA_HOME environment variable is pointing to my SDK directory, it is. And Tomcat is already installed, and I can view the main page, by going to localhost:8080.
I'm not sure what else to check. So, if some kind soul could point me in the right direction, I'd greatly appreciate it. I'm sure it's just something simple I'm missing. Oh, and if it matters, I'm running Windows XP.

Thanks,
Sean
 
Jyothi Lature
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

If the problem is finding in javac compiler, then SET you PATH to jdk_dir/bin folder.
 
Neeraj Vij
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
where have u set the JAVA_HOME in startup file for tomcat or among in environment variables of the system.

cheers
Neeraj.
 
Sonny Gill
Ranch Hand
Posts: 1211
IntelliJ IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sean,
Can you view the JSP and Servlet example pages that come with the default installation of Tomcat?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!