A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Web Component Certification (SCWCD/OCPJWCD)
basic servlet compilation difficulty
Joined: Jul 06, 2009
Jul 18, 2009 06:05:48
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
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
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.....
Joined: Jun 04, 2007
Jul 18, 2009 08:15:57
Have you set the 'path' environment variable? (Assuming it is Windows)
The value would be like C:\<all those directories>\bin
I agree. Here's the link:
subject: basic servlet compilation difficulty
difficulty in first jsp programm
running simple servlet
compiling ActionForm,ActionClass from command prompt,
Error in Servlet compilation
Compiling servlet [was: HTTP Status 404 - Servlet Login is not available]
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013