Hello JDK
This Tutorial will show you how to download and install the Java Development Kit (JDK)
Main Learning's
After following this tutorial you will learn how to:
- Download and install JDK
- Set up the required Java System variables
- Verify that the JDK is properly installed
Versions used:
- OS: Windows XP V1.6
- JDKversion 1.5.0_12
Assumptions:
The JDK is not properly installed
Tutorial Steps:
-
-
Select the JDK version to download (e.g. JDK 5.0 Update 12)
-
Click on the Download button
-
Select the JDK appropriate to your OS
-
E.g. jdk-1_5_0_12-windows-i586-p.exe - Windows Platform - Java Development Kit 5.0 Update 12
-
Execute the JDK installer (e.g. jdk-1_5_0_12-windows-i586-p.exe)
-
-
-
Click on Next>
-
J2SE Development Kit (JDK) Custom Setup
-
JDK is installed at C:\Progam Files\Java\jdk1.5.0_12\ (by default)
-
Change the folder to install JDK
-
Click on Change…
-
-
Remove “Program Files\” form the Folder name - C:\Program Files\Java\jdk1.5.0_12\
-
Click on OK
-
-
JDK is now set to be installed at C:\Java\jdk1.5.0_12\
-
Click on Next>
-
J2SE Runtime Environment (JRE) Custom Setup
-
JRE is installed at C:\Progam Files\Java\jre1.5.0_12\ (by default)
-
Change the folder to install JRE
-
Click on Change…
-
-
Remove “Program Files\” from the Folder name - C:\Program Files\Java\jre1.5.0_12\
-
Click on OK
-
-
JRE is now set to be installed at C:\Java\jre1.5.0_12\
-
Click on Next>
-
-
Click on Next>
-
JDK Installation Complete
-
-
Verify JDK installation folder
-
Verify JRE installation folder
-
Create a JAVA_HOME Environment Variable
-
On Windows XP, go to the Start menu, Settings, Control Panel, choose System and click on the Advanced tab
-
Click on the Environment Variables button
-
On the bottom part of the Windows you will see System Variables
-
Click on New
-
Create a JAVA_HOME Environment variable
-
The variable name is JAVA_HOME
-
The variable value is the folder where JDK was installed
-
Click on OK
-
Select path System variable
-
Click on Edit
-
Add %JAVA_HOME%\bin; to the beginning of Path variable value
-
Click on OK
-
JAVA_HOME and Path Environment Variables have been respectively set up and updated
-
-
-
Execute the java –version command. You shoul see the foloowing output:
-
Execute echo %JAVA_HOME% command. You shoul see the foloowing output:
Comments (0)
You don't have permission to comment on this page.