• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Software requirements??

 
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 246
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nabila,
please keep your Tomcat installation discussion in this thread.
 
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ohh I am sorry Christophe..
Thought they were different issues.
 
reply
    Bookmark Topic Watch Topic
  • New Topic