Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Beginner Tomcat JSP problem

 
marten kay
Ranch Hand
Posts: 178
Java jQuery Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
not sure if this is right forum, I am beginner completing the Head First Servlets and JSP book. Stuck on page 89.

using JDK 1.6, Tomcat 5.0, on XP

environment variables are set as follows
CLASSPATH= C:\Program Files\Java\jdk1.6.0\bin
JAVA_HOME = C:\Program Files\Java\jdk1.6.0\bin
TOMCAT_HOME = C:\Program Files\Apache Software Foundation\Tomcat 5.0
the servlet is compiled, and calls the following result.jsp


when the result.jsp is called the result is



Anybody any ideas?

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64692
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why is JAVA_HOME pointing to the bin folder?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, there is no need for your CLASSPATH environment variable to point to the JDK/bin directory.
 
marten kay
Ranch Hand
Posts: 178
Java jQuery Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks guys

I set my JAVA_HOME to C:\Program Files\Java\jdk1.6.0

and a lot of other things, including an article by Elliotte Rusty Harold on classpaths

The joy of my first servlet JSP working

I'm a newbie to OO, I have completed Head First Java, XHTML CSS, Ajax, OOAD, Design Patterns and read half of Larman. The hardest thing I have encountered so far is environment variables.

Cheers
[ June 25, 2007: Message edited by: marten kay ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic