Monday, May 13, 2013

Java Path Setting in Windows


Java Path Setting :

create JAVA_HOME Variable :
Go to Control Panel -> System Security -> System -> Advance System Settings -> Environmental Variables
JAVA_HOME : D:\Java\jdk1.5.0_22

Path : add .;%JAVA_HOME%\bin

Test your settings : Test your settings by opening a new command prompt .
    Start->Command-> in the command prompt 'type' 'java'. If it shows the 'Usage' and 'Options' you are go to go .
   
Classpath Setting :
    Create "CLASSPATH" Variable
        .;%PATH%;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;

Test you Classpath Settings : Test your settings by opening a new command prompt .
    Start->Command-> in the command prompt 'type' 'javac' . If it shows the 'Usage' and 'Options' you are go to go .