Step 1 : Go to my computer right click properties
Step 2: Click on
Step 3: Click on Environmental Variables
Step 4:
Step 5:
Variable Name JAVA_HOME
Variable value C:\Program
Files (x86)\Java\jdk1.6.0_35\bin;
After pressing ok button
Step6:
Step 7:
Step 8:
Step 9:
Sample Java program
public class MyFirstJavaProgram {
public static void
main(String []args) {
System.out.println("Hello World");
}
}
save the document as
MyFirstJavaProgram.java
Step10:
To compile Java code
Step11:
Step12: