Rahul's Blog

Installing and Configuring Java

Posted on: January 5, 2011

In previous post we have seen the Introduction of Java language and its features. In this post I’ll demonstrate how to install Java on your Windows Operating System.

1. Downloading the Java

 

2.  Installing the Java:

After the downloading is completed installation is very easy, just click the next buttons and agree the license agreements and the Java will be installed on your system.

Note: Setup asks you two times to install the files don’t cancel them. First time installer, installs the Java Development Kit (JDK) and second time installer, installs the Java Runtime Environment (JRE).

3. Configuring Java on Windows Operating System:

In this post I’ll show how to configure Java on Windows XP Operating System. The same process can be executed on the other versions of Windows. We will just register some environment variables which allows you to run the programs from command prompt.

  • Go to the drive where you have installed Java. On my computer I have installed Java on “D:\Program Files\Java”  directory.
  • Double click the “jdk1.7.0” directory. The version no. might be different, I am installing Java 7 so the version no. is 1.7.0, it might different version no also like 1.6.0 or 1.6.18 etc. I depends on which latest version of Java you have installed on your system.

  • Double Click the “bin” directory

  • Now copy the address from the address bar. For eg: “D:\Program Files\Java\jdk1.7.0\bin”

4. Registering Environment Variables:

  • Now, right click on My Computer icon and select Properties.
  • From the Properties dialog box, select the Advanced tab. In Advanced tab click on the Environment Variables button

  • A new dialog box will appear on clicking the Environment Variables button.

  • In above dialog box, select Path variable from System Variables and Click on Edit button. The Edit System Variable dialog will appear.

  • Now edit the Variable value. Give a ; (semicolon) at the end of the Variable value field and paste the path that we had copied in this field i.e. “D:\Program Files\Java\jdk1.7.0\bin” and click ok.

  • Note: Don’t Delete whole value from the Variable value field, If you have deleted the whole value then your computer will be crashed and you will not able to restart your computer.
  • Close all the dialog boxes.

5.  Checking whether the Java is Installed or not:

  • Open command prompt window and type the following command

java -version

  • The above command on execution will display following results:

java version “1.7.0-ea”

Java(TM) SE Runtime Environment (build 1.7.0-ea-b121)

Java HotSpot(TM) Client VM (build 20.0-b03, mixed mode, sharing)

Now successfully you have installed Java on your Windows Operating System.

2 Responses to "Installing and Configuring Java"

nice one dude…… it had helped me a lot….

Leave a comment

Categories:

January 2011
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  

My Blog Stats

  • 5,999 hits