Java environment Variables and ant/maven environment variable settings
1. Java Environment variables
The Windows environment is configured as:
CLASSPATH
.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;
Java_home
C:\Program files\java\jdk1.6.0_45
Append to Path:
%java_home%\jre\bin;%java_home%\bin;
The Linux environment is configured as:
Under the Ubuntu14.04 version system, set to:
Export java_home=/usr/local/java/jdk1.6.0_45
Export Path= $JAVA _home/bin
Export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
2. Ant/maven Environment variables
The Windows environment is configured as:
Ant_home
D:\apache-ant-1.9.3
Append to Path:
%ant_home%\bin;
M2_home
D:\apache-maven-3.1.1
Append to Path:
%m2_home%\bin;
The Linux environment is configured as:
Configured under the Ubuntu14.04 version system to:
Export ant_home=/usr/local/apache-ant-1.9.3
Export m2_home=/usr/local/apache-maven-3.1.1
Export path= $JAVA _home/bin: $PATH: $ANT _home/bin: $M 2_home/bin
The path configuration paths that you see under windows are:
%java_home%\jre\bin;%java_home%\bin;%ant_home%\bin;%m2_home%\bin