1 installing java on your pc. installing java to develop java programs on your pc: install jdk (java...

26
1 Installing Java on Your PC

Upload: morgan-warren

Post on 08-Jan-2018

243 views

Category:

Documents


0 download

DESCRIPTION

Download JDK 3 Click here

TRANSCRIPT

Page 1: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

1

Installing Java on Your PC

Page 2: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

Installing Java

To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

installed to your system path. Details follow.

Download JDK 8 at http://www.oracle.com/technetwork/java/javase/downloads/index.html

2

Page 3: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

Download JDK

3

Click here

Page 4: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

Download JDK

4

Click here

Click on the download link for your computer.e.g., For a 64 bit Windows system, click jdk-8u65-windows-x64.exe

Page 5: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

Install JDK

When the download is complete, double click on the file name in your Downloads folder to install the JDK.

5

Page 6: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

A Popup Message

You will be asked “Do you want to allow the following program to make changes to this computer?”

Click Yes

The “Installation Wizard” will start.

6

Page 7: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

The Installation Wizard

7

Click Next

Page 8: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

Custom Setup

8

Select “Development Tools” (the default)

Click Next

Page 9: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

Progress Screen

9

The Status message will change as installation progresses.

This could take several minutes.

Page 10: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

Destination Folder

10

Don’t click “Change”

Click “Next”

Note where it will be installed

Page 11: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

Oracle Advertisement

11

With Progress Bar

Eventually closes

Page 12: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

It’s finished

12

Click “Close”

Page 13: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

Find the JDK

Double click on Computer Drill down

OC (C) Program Files Java

13

Page 14: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

The Java Directory

14

This is the JDK directory.Double click on it, then on bin.

Page 15: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

Javac.exe is the Java compiler

15

Click in this box in order show the directory path in the normal formatand select it.

Copy the directory path (by pressing Control-C while it is selected.)You will need to use it in the following steps.

Page 16: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

Add the Java compiler’s directory to your system path

On Windows your “system path” specifies where the system will look for programs.

You need to add the directory that contains the Java compiler, javac.exe

Details on the following slides.

16

Page 17: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

Open Control Panel

Click on your computer’s Start button. Then click on “Control Panel”.

17

Page 18: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

Control Panel

18

Click on System

Page 19: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

System

19

Click on Advanced system settings

Page 20: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

System Properties

20

In the Advanced tab, click on the Environment Variables button.

Page 21: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

Environment Variables

21

In the System variables section, select Path and click the Edit button.

Page 22: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

Edit System Variable “Path”

22

At the end of the string in the Variable value text box, type a semicolon. Then paste in the path to the Java compiler by pressing Control-V.

Click OK

Page 23: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

Back in Environment Variables

23

Click OK

Page 24: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

Back in System Properties

24

Click OK

Page 25: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

Back in Control Panel

25

Click here to close window

Page 26: 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was

Finished

You should now be able to compile Java programs from the command line.

26