This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes Servlets and the fly likes setting classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "setting classpath" Watch "setting classpath" New topic

setting classpath

jaya S K

Joined: Aug 18, 2003
Posts: 20
I am using j2sdk1.4.2_01.Can anyone tell me how to set the classpath to run servlets.
Jaya S K
Ryan Bailey
Ranch Hand

Joined: Feb 26, 2002
Posts: 134
In order to run servlets you need to obtain a servlet engine like Tomcat, Sun One Server, etc. I would highly recommend using Tomcat. You would get your questions better answered if you move this topic to the Tomcat forum. If you install Tomcat just make sure you have your enviromental variable JAVA_HOME defined. You will also need J2EE version and not the J2SE of Java. I believe J2EE comes packaged with Sun One Server.

Java: The power, elegance, and simplicity of a hand grenade
vijaykumar shah

Joined: Jul 02, 2003
Posts: 23
refer to
u will get your answer ...
I agree. Here's the link:
subject: setting classpath