1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java...
-
Upload
morgan-warren -
Category
Documents
-
view
240 -
download
0
description
Transcript of 1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java...
![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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/1.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/2.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/3.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/4.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/5.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/6.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/7.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/8.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/9.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/10.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/11.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/12.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/13.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/14.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/15.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/16.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/17.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/18.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/19.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/20.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/21.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/22.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/23.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/24.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/25.jpg)
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.](https://reader036.fdocuments.in/reader036/viewer/2022062311/5a4d1ae67f8b9ab0599792b3/html5/thumbnails/26.jpg)
Finished
You should now be able to compile Java programs from the command line.
26