aspose file tools*
The moose likes Java in General and the fly likes Amnesia for my Servlet file...cannot find symbol? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Amnesia for my Servlet file...cannot find symbol?" Watch "Amnesia for my Servlet file...cannot find symbol?" New topic
Author

Amnesia for my Servlet file...cannot find symbol?

Rajkumar balakrishnan
Ranch Hand

Joined: May 29, 2008
Posts: 445

As i already come across through this error but i still getting clear about this. When i try to compile my VendServlet.java file the compiler shows this stupid error and i even check the classpath and all other formal check that we do when this kinda error comes. But it shows the same error. I even delete the class file of RMACPModel.java and re-compile
the file but it seems no worth of it. What can i do? And here the error msg for you



The source package of all the files was com.rajk.javacode.servlets. And all the class files were there and i even check that too. But still it shows error.Whats wrong with my Servlet File? But when i compile some other file it shows the same error,but those files were already working fine..Whats weird thing happening there?


Never try to be a hard-worker. Be a smart-worker.
My Blog
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42599
    
  65
You only have the servlet jar file in your classpath, so none of your classes will be found. Try this:

javac -classpath c:\apache-tomcat-6.0.16\lib\servlet-api.jar;C:\apache-tomcat-6.0.16\webapps\rmanew\WEB-INF\classes VendServlet.java


Ping & DNS - my free Android networking tools app
Rajkumar balakrishnan
Ranch Hand

Joined: May 29, 2008
Posts: 445

Thanks for your reply and it works fine. But how could my other servlet files runs with the command that i've used?.If it isn't a correct command, then it refuses to compile or give any error message but my other servlet run as smooth as this one. But why it troubles me now.Will you please clarify me Mr.Ulf Dittmer....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Amnesia for my Servlet file...cannot find symbol?