Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Software requirements??

 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I have JDK 1.5 installed and I installed Tomcat Apache.

Do i need something else or is this good enough?

I am trying to run the program given in the first chapter of HFJS book,
and i keep getting the error "javax.servlet.* packages does not exist"
I don't think I have any typos or anything .

This is my code.

 
Praveen Sharma
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
servlet-api.jar is the jarfile that contains javax.servlet.ServletException and javax.servlet.http.*.
If javac does not find this jar in its classpath then it shoots that error message what you are getting.

Just set servlet-api.jar in the classpath and that would resolve the problem.
 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank Praveen , that was a big help for a silly question.

I am having a little problem setting the classpath

I am using the command :

javac -classpath C:/Program Files/Tomcat5.5/common/lib/servlet-api.jar -d classes src/Ch1Servlet.java

And i keep getting the error
javac invalid flag : Files/Tomcat5.5/common/lib/servlet-api.jar
usage : javac <options> <source files>


I tried changing it to backslash( as i was a little confused about that)
And I also set it in the enviroment variables but it is still not reading the classpath.
 
nav katoch
Ranch Hand
Posts: 246
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Follow the thread:-
no tomcat

Thanks,
Naveen Katoch
 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sorry I didn't get you ...

Can you please elaborate.
 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks..

I got it my self...


Now can some one tell me how to Start Tomcat

Can some one please Help!!!

[Edited to link to your other thread - Christophe]
[ October 20, 2008: Message edited by: Christophe Verre ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nabila,
please keep your Tomcat installation discussion in this thread.
 
vidhya suvarna
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nabila,
even i am encountering the same error stated by you.
And i keep getting the error
javac invalid flag : Files/Tomcat5.5/common/lib/servlet-api.jar
usage : javac <options> <source files>

Could you please let me how did you get rid of it.
 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ohh I am sorry Christophe..
Thought they were different issues.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic