We might be tired of setting the “paths” for compiling the servelt program using the JDK (java development kit) (Works on any version of java). (or) we might also be having difficulty in remembering the different “paths” to be set in order to compile the servlet program.
Here is a simple way to compile the servlet program “without the need of setting the path”.
. Move to the directory “tomcat\lib”.
. Copy the file “servlet-api.jar”.
. Traverse to the directory “java\jdk\jre\lib\ext”.
. Paste the file “servlet-api.jar” in there.
. Now you will be able to compile the “servlet file”.
Note: “java” is the directory where java has be installed .
“tomcat” is the directory where tomcat is installed.
Blowfish12@2012 Author: Sudharsun. P. R.