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

basic servlet compilation difficulty

 
geet rahane
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hello ranchers...
I am preparing for scwcd...i had read the hfsj but not done a single programme while reading...now i have started to do the practicle..and i found so many difficulties

I am doing the first basic programme of servlet...in that

my project directory is in C:\Program Files\Java\jdk1.5.0_19\bin

i am using jdk1.5.0_19 and Tomcat 5.5

when i am trying to compile it using

c:\program Files\Java\jdk1.5.0_19\bin\project>javac -classpath C:/Program Files/Apache Software Foundation/Tomcat 5.5/common/lib/servlet-api.jar -d classes src/Ch1Servlet.java



I get

javac is not recognised as a internal or external command..

whether the path ,i am using during compilation is wrong ???

i know that this was a very basic problem but please help.....
 
Vishwanath Krishnamurthi
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you set the 'path' environment variable? (Assuming it is Windows)
The value would be like C:\<all those directories>\bin
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic