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.