Download presentation
Presentation is loading. Please wait.
Published byMorgan Warren Modified over 9 years ago
1
1 Installing Java on Your PC
2
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 http://www.oracle.com/technetwork/java/javase/downloads/index.html 2
3
Download JDK 3 Click here
4
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
5
Install JDK When the download is complete, double click on the file name in your Downloads folder to install the JDK. 5
6
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
7
The Installation Wizard 7 Click Next
8
Custom Setup 8 Select “Development Tools” (the default) Click Next
9
Progress Screen 9 The Status message will change as installation progresses. This could take several minutes.
10
Destination Folder 10 Don’t click “Change” Click “Next” Note where it will be installed
11
Oracle Advertisement 11 With Progress Bar Eventually closes
12
It’s finished 12 Click “Close”
13
Find the JDK Double click on Computer Drill down OC (C) Program Files Java 13
14
The Java Directory 14 This is the JDK directory. Double click on it, then on bin.
15
Javac.exe is the Java compiler 15 Click in this box in order show the directory path in the normal format and select it. Copy the directory path (by pressing Control-C while it is selected.) You will need to use it in the following steps.
16
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
17
Open Control Panel Click on your computer’s Start button. Then click on “Control Panel”. 17
18
Control Panel 18 Click on System
19
System 19 Click on Advanced system settings
20
System Properties 20 In the Advanced tab, click on the Environment Variables button.
21
Environment Variables 21 In the System variables section, select Path and click the Edit button.
22
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
23
Back in Environment Variables 23 Click OK
24
Back in System Properties 24 Click OK
25
Back in Control Panel 25 Click here to close window
26
Finished You should now be able to compile Java programs from the command line. 26
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.