• 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

Beginner Tomcat JSP problem

 
Ranch Hand
Posts: 226
1
jQuery Postgres Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why is JAVA_HOME pointing to the bin folder?
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also, there is no need for your CLASSPATH environment variable to point to the JDK/bin directory.
 
marten koomen
Ranch Hand
Posts: 226
1
jQuery Postgres Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
I have always wanted to have a neighbor just like you - Fred Rogers. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic