Top Banner
How to Install Java in Windows By admin on Friday, May 10, 2013 This tutorial provides step by step explanation of how to install Java in Windows. Step 1: Download JDK 1. Download JDK or JRE fromhttp://www.oracle.com/technetwork/java/javase/downloads/i ndex.html 2. Select the version .exe format for Windows. As per your system requirement (Windows x86 for 32-bit windows or Windows x64 for 64-bit windows). Step 2: Installation 1. Double click the downloaded JDK exe file.
16

How to install java in windows

Apr 13, 2017

Download

Education

srinu solipeta
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: How to install java in windows

How to Install Java in WindowsBy admin on Friday, May 10, 2013

 

This tutorial provides step by step explanation of how to install Java in Windows.

 

Step 1: Download JDK

1. Download JDK or JRE fromhttp://www.oracle.com/technetwork/java/javase/downloads/index.html

2. Select the version .exe format for Windows. As per your system requirement (Windows x86 for 32-bit windows or Windows x64 for 64-bit windows).

 

 

Step 2: Installation

1. Double click the downloaded JDK exe file.

 

Page 2: How to install java in windows

 

2. Click on "Next" button to start Setup

 

3. The "Custom Setup" window allows you to choose the optional features of the JDK, such as Development tool, Source Code etc. And also you can change the installation directory.

 

Page 3: How to install java in windows

 

 

@NOTE: if you want to use default location for JDK and JRE installation skip point 4th and 7th

 

4. Click on "Change…" button, to change your installation directory.

Page 4: How to install java in windows

 

5. Installing window will take few minutes to install the JDK.

 

Page 5: How to install java in windows

 

6. During JDK installation, you will get new window for JRE installation. Here you can choose optional features and also can change installation path for JRE.

Page 6: How to install java in windows

7. Click on "Change…" button, to change JRE installation directory

Page 7: How to install java in windows

 

8. Click on "OK", then Click on "Next" button

Page 8: How to install java in windows

 

9. Finally you will get "Complete" screen, click on the "Finish" button. Now you have done your JDK and JRE installation.

 

Page 9: How to install java in windows

 

 

10. After JDK installation is done, need to configure the environment variable. Let's come into next.

 

Step 3: JDK Configuration

JDK installation is OK, but need to configure the windows environment to compile and running the java application from any location. If you have not configured windows environment then your java program can be compile and run from <java-home>/bin dir. To configure the installed JDK into windows, need to set environment variable JAVA_HOME to "D:\Program Files\Java\jdk1.7.0_21".

 

1. Click on Start -> Right Click on Computer -> Select Properties.

Page 10: How to install java in windows

 

2. Click on Advance system settings

 

Page 11: How to install java in windows

 

3. Go to Advanced tab.

Page 12: How to install java in windows

 

4. Click on Environment Variables button

 

Page 13: How to install java in windows

 

5. Under User Variables section, click on New button6. Put Variable name JAVA_HOME and Variable value D:\Program Files\Java\

jdk1.7.0_21

 

Page 14: How to install java in windows

 

7. Press OK button to exist.8. Now set PATH environment variable same as above. Put Variable name PATH

and Variable value D:\Program Files\Java\jdk1.7.0_21\bin

Page 15: How to install java in windows

 

9. Now you have done your JDK configuration

 

Step 4: Testing Java Installation –

Before start development, need to check the installation and configuration are properly or not.

 

1. Open Command prompt and type "javac", if installation is properly then it must be show as below.

Page 16: How to install java in windows