This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
My 1st version servelt is workin perfectly. Then I created the model BeerExpert and compile it. Its also done. Now when I m trying to compile 2nd version servlet by calling model its not recognising model class. Its showing
C:\MyProjects\beerV1>javac -d classes src\com\example\web\BeerSelect.java src\com\example\web\BeerSelect.java:20: cannot find symbol symbol : class BeerExpert location: class com.example.model.BeerExpert.BeerSelect BeerExpert be=new BeerExpert(); ^ src\com\example\web\BeerSelect.java:20: cannot find symbol symbol : class BeerExpert location: class com.example.model.BeerExpert.BeerSelect BeerExpert be=new BeerExpert(); ^ 2 errors
Hi Satou, Yah managed to go to SCWCD without knowin Classpath.But now I ant to master it. Thanks for your valuable information. Because of that I am able to compile the servelet now but when I am trying to access means when I click on submit its showing HTTP status error. In classpath I gave up to C:\MyProjects\beerV1\src. Please help me in solving this.
Maybe you did not defined the servlet properly in web.xml Please post both servlet tag and servlet-mapping tag.
Joined: Jan 07, 2006
Thanks all for your reply. I did it.
My special thanks to Satou kurinosuke . You really solved my big problem. Thanks once again.And one more thing I want to tell you that, now I think I know a bit of classpath . Hope will master soon. Can you tell me from where I will get other resouces for path and classpath.