Java sdk and tomcat installation settings

Source: Internet
Author: User

After installing the Java SDK, you also need to set some system variables. You can set the system variables in system properties-advanced-environment variables.

 

JAVA_HOME = JAVA installation directory

CLASSPATH =...
Library path, which can be a directory or jar file, such as C: \ j2sdk1.4.0 _ 01 \ lib \ dt. jar; d: \ java. Note that the two paths are separated by semicolons.



To use tomcat, set CATALINA_HOME = TOMCAT installation directory



To use jdbc, javamail, and other component libraries in jsp, you must copy the required jar library files to tomcat \ common \ bin.

****************** Updated on 2005.7.20 ****************** **************

CLASSPATH
Full path: % JAVA_HOME % \ lib \ dt. jar; % JAVA_HOME % \ lib \ tool. jar; % JAVA_HOME % \ lib \
Tools. jar; % CATALINA_HOME % \ common \ lib \ servlet-api.jar; % CATALINA_HOME % \ common \ lib \ jsp-api.jar

If an unable to compile file for jsp error occurs on the debug jsp page, you can set the tomcat startup settings and add the path of tools. jar to the startup parameters.

*************** Updated on 2005.7.23 ********************* ********

If you want your website to support jstl, you must add some files under web-inf.

Yes
To the http://www.apache.org/dist/jakarta/taglibs/standard/binaries/jakarta-
Download the taglibs-standard-1.1.1.zip, extract the jstl. jar and standard. jar from it and put it under the web-inf/lib directory
To copy the c. tlb file to the web-inf/tlds directory.

Add the web. xml file under web-inf. The file content is as follows:
<Taglib>
<Taglib-uri> http://java.sun.com/jstl/core </taglib-uri>
<Taglib-location>/WEB-INF/tlds/c. tld </taglib-location>
</Taglib>

This won't happen without recognizing <% @ taglib prefix = "c" uri = "http://java.sun.com/jstl/core" %>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.