File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Servlet program using command prompt Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply locked New topic
Author

Servlet program using command prompt

Swapnil Sanghai
Ranch Hand

Joined: Dec 05, 2011
Posts: 37

Hi,
I am unable to compile the servlet class using command prompt.
When I compile it shows the error


cannot find symbol
import javax.servlet.*;


(and all other jar files related to the servlet)

i.e. it is unable to find the jar files.
I already set the environment varibles.
What may be the reason?
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50691

This means that you didn't put the proper jar file in your compilation classpath. This has been discussed countless times in the Beginning Java forum. Please search there fro your answer.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
 
subject: Servlet program using command prompt
 
Threads others viewed
cannot compile
Unmarshalling Error while registering an object in RMIRegistery
Devaka's PracticeExam3 Q.No 7
Compiling a servlet
Problem in making Beer Expert app from Head First Servlet Book
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture