AsifAimen Iqbal wrote:
I m afraid i m missing something in the dos command for CLASSPATH setting!!!
Classpath is bit tricky when setting it in DOS/Windows. The problem occurs in case you have set an Environment Variable class 'classpath' and you are trying to re-define it in the dos window.
Here are couple of alternatives that might work.
1. Set the environment variable classpath --> Right Click my computer --> properties --> Advance --> Environment Variables --> Set the class Path to
.;C:\apache-tomcat-5.5.27\common\lib\servle
t-api.jar;C:\MyProjects
2. Use javac -cp option : Don't bother with the classpath variable. Just compile your program using the following command line,
javac -classpath ".;C:\apache-tomcat-5.5.27\common\lib\servlet-api.jar;C:\MyProjects" BeerSelect.java