List of environment variables Java developer needs to set up

 Some developers asked us questions about environment variables, about install settings. We collect all common used environment variables into one table. We hope it will be helpful for developers.

Environment variable



JAVA_HOME Java C:\Program Files\Java\jdk1.8.0_101
CLASSPATH Java C:\Development;C:\Development\lib;.
MAVEN_OPTS Maven -Xms256m -Xmx512m
MAVEN_HOME Maven C:\Development\apache-maven-3.3.9
M2 Maven %M2_HOME%\bin
M2_HOME Maven C:\Development\apache-maven-3.3.9
JUNIT_HOME Junit C:\Development\lib
WAS_HOME WebSphere C:\WAS\WebSphere\AppServer\bin>setupCmdLine.bat
LD_LIBRARY_PATH Oracle C:\Program Files (x86)\Oracle_Instant_Client\instantclient_11_2
ORACLE_HOME Oracle C:\Program Files (x86)\Oracle_Instant_Client\instantclient_11_2
TNS_ADMIN Oracle C:\Development\TNS
Path OS %JAVA_HOME%/bin;.;