Presentation is loading. Please wait.

Presentation is loading. Please wait.

Java Development Kit Installation Guide Sun Microsystems.

Similar presentations


Presentation on theme: "Java Development Kit Installation Guide Sun Microsystems."— Presentation transcript:

1 Java Development Kit Installation Guide Sun Microsystems

2 Downloading Java Development Kit

3 If you do not have JDK setup, follow these instructions to download –Go to the link –Under the Section Java SE Development Kit (JDK) –Click on Download Button –(on the next page) Select Platform (like Windows) –Check the License Agreement checkbox –Click on Continue button –( normally download begins after this stage, but sometimes it ask for a few other options ) –In the middle of the (visible) page there would be a link under section Java SE Development Kit xUyy (i.e 6U16) –Right click on the Link save target as (define path where you want to save your download) Java Development Kit (JDK) Downloading JDK Installer

4

5

6

7

8

9 Installing Java Development Kit

10 Double Click the JDK setup, which you have downloaded Java Development Kit (JDK) JDK Installation

11 Click on Accept button on License Agreement dialogue box Java Development Kit (JDK) JDK Installation

12 Keep the Default Setting (recommended) Keep the Install to path as default (recommended) Click on Next button Java Development Kit (JDK) JDK Installation

13 The Installation would begin now Please wait for a while, until the setup would finish the Installation Java Development Kit (JDK) JDK Installation

14 Once the Installation is Finished Click on Finish button to complete the setup Java Development Kit (JDK) JDK Installation

15 Java Development Kit - jdk 1.6_x Now Install the downloaded JDK as any other software Say You have installed it on normal path C:\Program Files\Java\jdk1.6.0_15\ The Important thing is to setup the Environmental Variables for JDK. Follow the coming steps to Set your Environmental Variables correctly… Java Development Kit (JDK) JDK Installation

16 Setting Environmental Variables for Java Development Kit

17 Right Click on youre My Computer Icon and Click on Properties option Java Development Kit (JDK) Setting JDK Environmental Variables

18 System Properties Dialogue Box would be displayed: Java Development Kit (JDK) Setting JDK Environmental Variables

19 Select Advanced Tab Click on Environmental Variable button Java Development Kit (JDK) Setting JDK Environmental Variables

20 A separate Environmental Variables Dialogue box would appear Which already contains two types of Values,, i.e. User Variables for user_xyz, and System Variables (or Global variables) We would set our Desired Variables in User Variable Section To set a User level Environmental Variable Click on New button, below the User Variable Section Java Development Kit (JDK) Setting JDK Environmental Variables

21 Environmental Variable JAVA_HOME When You click on New button, a dialogue box would appear which would be having two fields Variable name and Variable value In Variable name field, put the value JAVA_HOME (case sensitive) and in Variable value field the value would be full path of Jdk Installation (where ever you have installed it) for example, In my case, it would be C:\Program Files\Java\jdk1.6.0_15\ Then click on OK button Java Development Kit (JDK) Setting JDK Environmental Variables

22 Environmental Variable Path In Variable name field, put the value Path and in Variable value field value would be %JAVA_HOME%\bin Remember this %JAVA_HOME% is the reference to the environmental variable we have set previously,, and here the value would be %JAVA_HOME% followed by \bin (dont skip or ignore the backslash \) Then click on OK button Java Development Kit (JDK) Setting JDK Environmental Variables

23 Environmental Variable classpath In Variable name field, put the value classpath The value field would actually contain three values separated by semicolon ; and they are:. (a dot), JDK library path and JRE library path Thus the value would be like.;%JAVA_HOME%\lib;%JAVA_HOME%\jre\lib (its like dot. followed by semicolon ; then %JAVA_HOME% followed by \lib followed by another semicolor ; then %JAVA_HOME% followed by \jre\lib ( note backslashes carefully ) Then click on OK button Java Development Kit (JDK) Setting JDK Environmental Variables

24 Prepared by: Virtual University Open Source Software Community (VOSS Com.) VIRTUAL UNIVERSITY OF PAKISTAN Java Development Kit Downloading and Installation Guide


Download ppt "Java Development Kit Installation Guide Sun Microsystems."

Similar presentations


Ads by Google