aspose file tools*
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
JavaRanch » Java Forums » Products » Tomcat
Bookmark "About Tomcat" Watch "About Tomcat" New topic
Author

About Tomcat

JayKumar Chimata
Greenhorn

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

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

and

name:CLASSPATH
value:E:\Java\jdk1.5.0_06\lib\tools.jar.;%classpath%.;


When i tried to so the local host thing like


http://localhost/servlet/filename

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

Joined: Jul 09, 2007
Posts: 3
name:CLASSPATH
value:C:\Java\jdk1.5.0_06\lib\tools.jar.;%classpath%.;
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: 14435
    
  23

Originally posted by JayKumar Chimata:
name:CLASSPATH
value:C:\Java\jdk1.5.0_06\lib\tools.jar.;%classpath%.;


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: http://aspose.com/file-tools
 
subject: About Tomcat