aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes basic servlet compilation difficulty Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "basic servlet compilation difficulty" Watch "basic servlet compilation difficulty" New topic
Author

basic servlet compilation difficulty

geet rahane
Ranch Hand

Joined: Jul 06, 2009
Posts: 45

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

Joined: Jun 04, 2007
Posts: 331
Have you set the 'path' environment variable? (Assuming it is Windows)
The value would be like C:\<all those directories>\bin


Blog
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: basic servlet compilation difficulty
 
Similar Threads
compiling ActionForm,ActionClass from command prompt,
Error in Servlet compilation
difficulty in first jsp programm
running simple servlet
Compiling servlet [was: HTTP Status 404 - Servlet Login is not available]