I'm new to servlets and I was working on my first servlet program. (using Head First Servlets & JSP book).
When i try to compile it through command prompt I had to give paths to my classfiles. (UserSelect.java references other files from classes\model\...)
But I had to include the path to the jar file also since " -cp " overrides the CLASSPATH set in environment variable (in Win).
Moving to servlets forum. I would recommend you keep the . in your classpath, in case you invoke a file in your current directory.
Only set a classpath with the -cp flag, or (for a lasting change) with the set instruction on the command prompt. Don't set it in "environment variables" unless you can't find files in the current directory.
javac: file not found: DemoServlet.java
Usage: javac <options> <source files>
use -help for a list of possible options
I have set the CLASSPATH VARIABLE, PATH VARIABLE, JAVA_HOME VARIABLE....All these Environmental variables I have set in system settings-Advanced settings.
I am not getting what is going wrong here..I am new to servlets