• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Rajkumar balakrishnan
Ranch Hand
Posts: 445
Android Eclipse IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Rajkumar balakrishnan
Ranch Hand
Posts: 445
Android Eclipse IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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....
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic