Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet error!!!

 
ramakrishna pydipati
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai everybody ,
My java is in C:\s1studio_jdk\j2sdk1.4.1_02
my system variables are:
JAVA_HOME:C:\s1studio_jdk\j2sdk1.4.1_02
classpath:C:\s1studio_jdk\j2sdk1.4.1_02\bin
Path:C:\s1studio_jdk\j2sdk1.4.1_02\bin
now I downloaded Tomcat server 5.0
it was in D:\Program Files\Apache Software Foundation\Tomcat 5.0
I configured CATALINA_HOME like this
CATALINA_HOME :\Program Files\Apache Software Foundation\Tomcat 5.0
so what else I got to do? to "run a servlet "? I don't know anything else
please help me out.
I appreciate u r help.
 
ramakrishna pydipati
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please help me ut guys I am in trouble!!
 
Craig Jackson
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your setup should be similar as follows, for example:

I am using the j2ee.jar file from J2EE, but you can set your classpath to point to tomcat's serlvet-api.jar, I believe it is called:


This will give you some idea of how your environment should be setup.
You can startup tomcat by either:

or "cd" to %catalina_home%\bin and then executing startup.bat from the command line.
If you have any questions about tomcat, I believe the good people at the tomcat forum are very helpfull.
craig.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic