Top Banner
Windows XP Java Development Kit (JDK) Configuration Instructions
36

Java Configuration on Windows Xp

Jul 28, 2015

Download

Technology

Abdinav Singh
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: Java Configuration on Windows Xp

Windows XP

Java Development Kit (JDK)

Configuration

Instructions

Page 2: Java Configuration on Windows Xp

1. Go to http://java.sun.com

Page 3: Java Configuration on Windows Xp

2. Click on “Java SE” on the right (under “Popular Downloads”.)

Page 4: Java Configuration on Windows Xp

3. On the page that loads, scroll down until you see “Java SE

Development Kit (JDK).” Click on the “Download” button to

the right.

NOTE: At the time of writing (January 2009) the latest version

of the JDK is 6 Update 11.

Page 5: Java Configuration on Windows Xp

4. On the page that loads, choose Windows as your platform,

set language to Multi-Language, and select the checkbox.

Finally, click the orange “Continue >>” button.

NOTE: If you are confident that you are on a 64-bit Windows

installation, you can select Windows x64 as your platform.

Page 6: Java Configuration on Windows Xp

5. On the next screen that loads click to download the “Java SE

Development Kit.”

NOTE: You may be requested to use the Sun Downloader to

download Java. I advise just using the directly linked full

download.

Page 7: Java Configuration on Windows Xp

6. Chose to save the file.

Page 8: Java Configuration on Windows Xp

7. Downloading the file may take a couple of minutes based on

your connection speed.

Page 9: Java Configuration on Windows Xp

8. Go to where you downloaded the JDK.

Page 10: Java Configuration on Windows Xp

9. Launch the installer. If given a security warning click the

“Run” button.

Page 11: Java Configuration on Windows Xp

10. The installer should begin loading. Please be patient.

Page 12: Java Configuration on Windows Xp

11. Eventually you will be presented with an End User License

Agreement (EULA). Read it before clicking the “Accept >”

button.

Page 13: Java Configuration on Windows Xp

12. For this course, a default installation is completely fine, so

just click the “Next >” button.

NOTE: Pay attention to the “Install to:” location, you will

need it later.

Page 14: Java Configuration on Windows Xp

13. Be patient while Java installs the JDK.

Page 15: Java Configuration on Windows Xp

14. You will then be asked to install the Java Runtime Engine

(JRE.) Click the “Next >” button.

Page 16: Java Configuration on Windows Xp

15. Be patient while Java installs the JRE.

Page 17: Java Configuration on Windows Xp

16. You are now done installing Java. All that is left is

configuration.

Note: You may be asked to reboot your computer at this

point. If you are, please do so.

Page 18: Java Configuration on Windows Xp

17. Now load the System Properties panel by right clicking on

“My Computer” in the start menu and selecting

properties.

Note: This step can be done in other ways too. Such as…

Right clicking on My Computer on the desktop and

selecting properties.

Holding the Windows-key () on your keyboard and

pressing the “Pause” key. (This may require holding

FN on some laptops.)

Page 19: Java Configuration on Windows Xp

18. The System Properties dialog should load.

Page 20: Java Configuration on Windows Xp

19. Click on the “Advanced” tab.

Page 21: Java Configuration on Windows Xp

20. Click on “Environment Variables” button.

Page 22: Java Configuration on Windows Xp

21. The “Environment Variables” dialog should load.

Page 23: Java Configuration on Windows Xp

22. In the “System variables” region, scroll down until you see

the “Path” variable.

Page 24: Java Configuration on Windows Xp

23. Click the lower “Edit” button.

Page 25: Java Configuration on Windows Xp

24. You should now be editing the “Path” variable.

Page 26: Java Configuration on Windows Xp

25. Remember the “Install to:” location on Step 12? That is the

line you need to add to the end of the path. Be sure to

prefix the location with a ; and post fix it with bin

Therefore you want to add:

;<YOUR_INSTALL_LOCATION>bin

On MY computer, that meant:

;c:\Program Files\Java\jdk1.6.0_11\bin

WARNING: BE VERY CAREFUL NOT TO OVERWRITE ALL THE

EXISTING ENTRIES IN YOUR PATH!

Page 27: Java Configuration on Windows Xp

26. Click the “OK” button to confirm your change.

Page 28: Java Configuration on Windows Xp

27. Click the “OK” button in the Environment Variables dialog.

Page 29: Java Configuration on Windows Xp

28. Click the “OK” button in the System Properties dialog.

Page 30: Java Configuration on Windows Xp

29. Now to test our changes. Open the “Command Prompt” by

going to:

Start All Programs Accessories Command Prompt

Note: This step can be done in other ways too. Such as…

Opening the Run Dialog and entering the command

“cmd” (without the quotes.)

Page 31: Java Configuration on Windows Xp

30. The command prompt should load.

Page 32: Java Configuration on Windows Xp

31. Enter the command “path” (without the quotes) and press

enter. You should see the new path location, which

includes your update.

Page 33: Java Configuration on Windows Xp

32. Enter the command “java -version” (without the quotes)

and press enter. You should see the JRE version you have

installed.

Page 34: Java Configuration on Windows Xp

33. Enter the command “javac -version” (without the quotes)

and press enter. You should see the JDK version you have

installed.

Page 35: Java Configuration on Windows Xp

34. Close the command prompt by click on the x on the top

right or typing “exit” (without the quotes) and pressing

enter.

At this point, you can delete the JDK installer that you

downloaded on step 6.

Page 36: Java Configuration on Windows Xp

THE END

(CONGRADULATIONS)