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.java

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 Files\Java\jdk1.6.0_12\bin)


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

Example
C:\Program Files\Java\jdk1.6.0_12
2 Apache axis2 AXIS2_HOME Example
D:\axis2-1.5.2-bin\axis2-1.5.2\
for more details check here
3 Java PATH Example
C:\Program Files\Java\jdk1.6.0_12\bin
4 Java CLASSPATH Example
C:\Program Files\Java\jdk1.6.0_12\bin
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
About mohan

This is Mohan Jayapalan author of TechPages Blog.I am a part time blogger and Currently working for private Software Concern.

© Copyright 2010-2016 www.techpages.org · All Rights Reserved · Powered by WordPress ·