How to install java

Step 01 - Install the java program

Step 02 - Create class path

  1. go to c drive
  2. select program files
  3. select java
  4. go to the bin folder
  5. copy class path using address bar
  6. right click on computer
  7. go to properties
  8. select advance system setting 
  9. select environment variable
  10. select new
  11. type variable name as "PATH" and set variable values as class path(paste class path)
  12. click ok
Step 03 - test java installed properly 



class test
{
public static void main (String param[])
{
System.out.println("Hello Java");
}}

using note pad type this java code

Step 04 - after creating java source code file you must save it using .java extension


  1. file
  2. save as
  3. select c drive or d drive or folder
  4. type the file name as test.java
  5. save

Step 05 - in this step we should use dos program



you should go in to folder java  cd java  



now you are in the java folder

 you must compile source code file in to java byte code javac test.java




Step 06 - interpret  java file   java test



How to install java How to install java Reviewed by Unknown on 10:57 PM Rating: 5
Powered by Blogger.