File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes About Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "About Tomcat" Watch "About Tomcat" New topic

About Tomcat

JayKumar Chimata

Joined: Jul 09, 2007
Posts: 3
Hi I am net to servlets please help me out

I installed servlets on my laptop and set the environmental valus as

Actually my java is in

C:\Program Files\Java\jdk1.5.0_11\bin

But i kept apache on my desktop

Its on desktop
and its path is

c:\Documents and Settings\Jay\Desktop\apache

Now i set the environmental variables as

value:C:\Program Files\Java\jdk1.5.0_11



When i tried to so the local host thing like


Its not showing any response
Please help me out of this
JayKumar Chimata

Joined: Jul 09, 2007
Posts: 3
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Originally posted by JayKumar Chimata:

I installed servlets on my laptop

Could you please explain this ?

Servlets are not like other standard standalone java programs , they run within a servlet container and have a life cycle.

Have you installed any servlet container and deployed your servlets into that.

Rahul Bhattacharjee
LinkedIn - Blog
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15047

Originally posted by JayKumar Chimata:

Is there a dot, ".", after "tools.jar" and "%classpath%"?

You do not need to add tools.jar to your classpath.

Anyway, you installed your JDK in C:\Progam Files\Java\jdk1.5.0_11, so why are you pointing the classpath at C:\Java\jdk1.5.0_06\... ?

You do not need to set the CLASSPATH environment variable at all. Just remove it from the list of environment variables.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
I agree. Here's the link:
subject: About Tomcat
It's not a secret anymore!