helloopensource

 

jdk

Page history last edited by Paulo 1 yr ago
 

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:

  1. Go to JDK Download Page at http://java.sun.com/javase/downloads/index.jsp

     

  2. Select the JDK version to download (e.g. JDK 5.0 Update 12)
      
  3. Click on the Download button

     

  4. Select the JDK appropriate to your OS

     

    1. E.g. jdk-1_5_0_12-windows-i586-p.exe - Windows Platform - Java Development Kit 5.0 Update 12

       

  5. Execute the JDK installer (e.g. jdk-1_5_0_12-windows-i586-p.exe)
  6. License Agreement

     

    1. Select I accept…

       

    2. Click on Next>
  7. J2SE Development Kit (JDK) Custom Setup

     

    1. JDK is installed at C:\Progam Files\Java\jdk1.5.0_12\ (by default)

       

    2. Change the folder to install JDK

       

    3. Click on Change…
  8. Select a JDK Folder name

     

    1. Remove “Program Files\” form the Folder name - C:\Program Files\Java\jdk1.5.0_12\      

       

    2. Click on OK
  9. JDK Custom Setup

     

    1. JDK is now set to be installed at C:\Java\jdk1.5.0_12\

       

    2. Click on Next>
  10. J2SE Runtime Environment (JRE) Custom Setup

     

    1. JRE is installed at C:\Progam Files\Java\jre1.5.0_12\ (by default)

       

    2. Change the folder to install JRE

       

    3. Click on Change…
  11. JRE Folder name

     

    1. Remove “Program Files\” from the Folder name - C:\Program Files\Java\jre1.5.0_12\      

       

    2. Click on OK
  12. JRE Custom Setup

     

    1. JRE is now set to be installed at C:\Java\jre1.5.0_12\

       

    2. Click on Next>
  13. JRE Browser Registration

     

    1. Click on Next>
  14. JDK Installation Complete

     

    1. Click on Finish

       

  15. Verify JDK installation folder
  16. Verify JRE installation folder
  17. Create a JAVA_HOME Environment Variable

     

    1. On Windows XP, go to the Start menu, Settings, Control Panel, choose System and click on the Advanced tab
  18. Click on the Environment Variables button
  19. On the bottom part of the Windows you will see System Variables

     

    1. Click on New
  20. Create a JAVA_HOME Environment variable

     

    1. The variable name is JAVA_HOME

       

    2. The variable value is the folder where JDK was installed

       

    3. Click on OK
  21. Select path System variable

     

    1. Click on Edit
  22. Add %JAVA_HOME%\bin; to the beginning of Path variable value

     

    1. Click on OK
  23. JAVA_HOME and Path Environment Variables have been respectively set up and updated

     

    1. Click on OK

       

  24. Open a Console Window

     

  25. Execute the java –version command. You shoul see the foloowing output:
  26. Execute echo %JAVA_HOME% command.  You shoul see the foloowing output:

     

     

     

Comments (0)

You don't have permission to comment on this page.