This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About Tomcat

 
JayKumar Chimata
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
name:CLASSPATH
value:C:\Java\jdk1.5.0_06\lib\tools.jar.;%classpath%.;
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15485
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic