Set Classpath in JSP

Advertisements

Difference Between JSP and HTML Life Cycle of JSP

Set Classpath for JSP

Installation of JSP

Download tomcat from the following url https://tomcat.apache.org/download-70.cgi Download tomcat select tomcate installer version(.exe), will get download as exe file, install into default location than "tomcate home directory" will be;

Location

"C:\program files\apache software foundation\tomcat 6.0"

Or you can direct download from our website Tomcat 7.0 Download Tomcat 7.0

Hierarchy of Tomcat Server

hierarchy of tomcat

Below I will give you description about all folder related to Tomcat Server and their uses.

  • bin:\ This sub folder used to start and stop the tomcat server.
  • conf:\ This folder is used to configure server port number for this use server.xml file.
  • lib:\ This folder contains "jsp-api.jar" used to set classpath for jsp programming, this is vender specific.jar file for jsp programming.
  • webapps:\ This is the web application deployment folder used to deploy web application by copying webroot or for copy you application.

classpath

classpath variable is set for providing path of all java classes which is used in our application. All classes related to jsp are available in lib/jsp-api.jar so we set classpath upto lib/jsp-api.jar.

Set Classpath for JSP

Copy jsp-api.jar file location and set the classpath in environment variable.

If your classpath is already set for core java programming, you need to edit classpath variable. for edit classpath just put ; at end of previous variable and paste new copied location (without delete previous classpath cariable).

set classpath in jsp

In the above image you can see "C:\Program Files\Java\jdk1.6.0\jre\lib\rt.jar" path is already set now you can only put your jsp-api.jar location at the end of this path. Finally your complete path is;

C:\Program Files\Java\jdk1.6.0\jre\lib\rt.jar ; C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\jsp-api.jar.;

Note: For read more about classpath you can read our core java concept Classpath in Java


Difference Between JSP and HTML Life Cycle of JSP

Google Advertisment

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

For Projects 9999595223

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements