Java, tomcat, ant, and Perl environment variable configuration

Source: Internet
Author: User

If you want to call it directly in any directory, You need to configure its corresponding environment variables.

The following describes how to configure environment variables:

1. Java:

Download the JDK and install or decompress it.

Set environment variables:

Java_home = C:/jdk1.5.0 _ 03
Path = % java_home %/bin/; % PATH %
Classpath =.; % java_home %/lib/dt. jar; % java_home %/lib/tools. Jar

Configuration in Linux
. Bashrc File

Set java_home =/usr/Java/j2sdk1.4.2 _ 05
Export java_home
Set Path = $ java_home/bin/: $ path
Export path
Set classpath =.: $ java_home/lib/dt. jar: $ java_home/lib/tools. Jar
Export classpath
------------------------------------------------

2. Tomcat setting variables. (It does not matter if it is not set)

Tomcat_home = C:/tomcat 5.0

Classpath =. % tomcat_home %/bin

 

3. If ant does not set environment variables, it cannot be called directly in any directory. The problem with direct calling is that 'ant' is not an internal or external command.
Setting method:
1> set ant_home to point to the ant installation directory
2>. Add % ant_home %/bin; % ant_home %/lib to the path of the environment variable.
 

4. Perl environment variable settings on Windows

My Perl has the following settings in D:/perl:

Find perl5lib and add the following:

D:/perl/LIB; D:/perl/site/LIB;

OK.

 

Related Article

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.