Environment Variables for Java Project

Environment variables are key/value pairs in the form of strings. it  is used by operating systems to pass configuration information to applications.In Java platform also we have  environment variables.Environment Variables for Java Project

How to Set Environment Variable in Windows? For Windows Vista
Right Click Computer ——->Go to Properties ——–>Click Advanced system settings ———-> Click Environmental variables


Goto System variables section ——–> Click New


variable name —–> PATH

Variable value ———> Java Installation location(for example C:Program FilesJavajdk1.6.0_12bin)


Here I listed some environment variables which will be useful if you are working in Java  project.

S.No Package/API/Where Environment Variable Environment Variable Value
1 Java
JAVA_HOME


Example
C:Program FilesJavajdk1.6.0_12
2 Apache axis2 AXIS2_HOME Example
D:axis2-1.5.2-binaxis2-1.5.2
for more details check here
3 Java PATH Example
C:Program FilesJavajdk1.6.0_12bin
4 Java CLASSPATH Example
C:Program FilesJavajdk1.6.0_12bin
5 Oracle ORACLE_HOME

ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1

Oracle ORACLE_PATH Example
ORACLE_PATH=.:$ORACLE_BASE/dba_scripts/common/sql

7 Oracle ORACLE_SID Example:
ORACLE_SID=racdb1
8 Oracle LD_LIBRARY_PATH Example
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib

9 Oracle SQLPATH Example
SQLPATH=.:$ORACLE_BASE/dba_scripts/common/sql


J2EE J2EE_HOME The location of J2EE SDK Installation
11 ANT ANT_HOME The location of ant installation

Related posts:

  1. Apache Axis2 Download and Environment Variable Settings
  2. Java Debugging Techniques[Part1]

Comments are closed.