Compile servlet program without setting path


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”.


[1]. Move to the directory “tomcat\lib”.

[2]. Copy the file “servlet-api.jar”.

[3]. Traverse to the directory “java\jdk\jre\lib\ext”.

[4]. Paste the file “servlet-api.jar” in there.

[5]. 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.


tomcat configuration

Blowfish12@2012 Author: Sudharsun. P. R.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s