aspose file tools*
The moose likes Servlets and the fly likes compilation problem in servlet program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "compilation problem in servlet program" Watch "compilation problem in servlet program" New topic
Author

compilation problem in servlet program

phanikumar jami
Greenhorn

Joined: Oct 06, 2009
Posts: 4
hi i have a problem that , when i execute a servlet program in my pc i its not compiled and it shows 6 errors. i set the class path of the tomcat server correctly. but its not compiled. can any one please answer my question....
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Can you post the error you are seeing.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Prashant Hurria
Ranch Hand

Joined: Mar 23, 2009
Posts: 40
Did you include Servlet.jar in your classpath it is located at
<apache-home>\common\lib\servlet.jar
phanikumar jami
Greenhorn

Joined: Oct 06, 2009
Posts: 4
Prashant Hurria wrote:Did you include Servlet.jar in your classpath it is located at
<apache-home>\common\lib\servlet.jar


ya i included serlet-api.jar in my class path.
Amir Iqbal
Ranch Hand

Joined: Jun 23, 2007
Posts: 97
Kindly post the errors so that we can reach to the actual problem.

Regards,


i am Java +ve Now !
Soumil Shah
Ranch Hand

Joined: Jul 13, 2009
Posts: 54
Try this..

Set the CLASSPATH through the command prompt at the location where you are compiling your servlet code.
phanikumar jami
Greenhorn

Joined: Oct 06, 2009
Posts: 4
Soumil Shah wrote:Try this..

Set the CLASSPATH through the command prompt at the location where you are compiling your servlet code.



ya i know this. with the temporary class path setting in command prompt , the program will compiled. but the output is not came. the browser shows error that the directory is not found.
Santhosh Reddy
Greenhorn

Joined: Sep 25, 2006
Posts: 27
Full stack trace of the error will give a better picture of the error and thereby an easier and fast solution will be yours.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: compilation problem in servlet program