17 down vote
In Windows inorder to set
Step 1 : Right Click on MyComputer and click on properties .
Step 2 : Click on Advanced tab
Step 3: Click on Environment Variables
Step 4: Create a new class path for JAVA_HOME
Step 5: Enter the Variable name as JAVA_HOME and the value to your jdk bin path ie c:\Programfiles\Java\jdk-1.6\bin and
NOTE Make sure u start with
Step 6 : Follow the Above step and edit the Path in System Variables add the following
Step 7 :Your are done setting up your environment variables for your Java , In order to test it go to command prompt and type
who will get a list of help doc
In order make sure whether compiler is setup Type in cmd
who will get a list related to javac
Hope this Helps !