• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

new to jsp, quick question

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

If the problem is finding in javac compiler, then SET you PATH to jdk_dir/bin folder.
 
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1211
Mac IntelliJ IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sean,
Can you view the JSP and Servlet example pages that come with the default installation of Tomcat?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic