java setup - yola · java se development kit 8 downloads thank you for downloading this release of...

17
Java setup Latifah Altraiki

Upload: others

Post on 31-Mar-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Java setup - Yola · Java SE Development Kit 8 Downloads Thank you for downloading this release of the Java TM Platform, Standard Edition Development Kit (JDKTM). The JDK is a development

Java setup

Latifah Altraiki

Page 2: Java setup - Yola · Java SE Development Kit 8 Downloads Thank you for downloading this release of the Java TM Platform, Standard Edition Development Kit (JDKTM). The JDK is a development

Objective

In this lab you’ll:

• Setup requirements for Java .

• Java setup by install both JDK and Eclipse.

• Eclipse test.

Page 3: Java setup - Yola · Java SE Development Kit 8 Downloads Thank you for downloading this release of the Java TM Platform, Standard Edition Development Kit (JDKTM). The JDK is a development

Java program execute

.java .class

Page 4: Java setup - Yola · Java SE Development Kit 8 Downloads Thank you for downloading this release of the Java TM Platform, Standard Edition Development Kit (JDKTM). The JDK is a development

Java setup

• First, Install JDK

• Second, install Eclipse

• Hint: No need to install JRE , JDK is integrated with JRE

Page 5: Java setup - Yola · Java SE Development Kit 8 Downloads Thank you for downloading this release of the Java TM Platform, Standard Edition Development Kit (JDKTM). The JDK is a development

JDK download

• 1- Download JDK from the Oracle site on below link:

https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Page 6: Java setup - Yola · Java SE Development Kit 8 Downloads Thank you for downloading this release of the Java TM Platform, Standard Edition Development Kit (JDKTM). The JDK is a development

JDK download(cont.)

• Create Oracle account.

Page 7: Java setup - Yola · Java SE Development Kit 8 Downloads Thank you for downloading this release of the Java TM Platform, Standard Edition Development Kit (JDKTM). The JDK is a development

JDK install

• Run the downloaded file by double clicking it and follow the installation steps below

Page 8: Java setup - Yola · Java SE Development Kit 8 Downloads Thank you for downloading this release of the Java TM Platform, Standard Edition Development Kit (JDKTM). The JDK is a development

JDK install (cont.)

Page 9: Java setup - Yola · Java SE Development Kit 8 Downloads Thank you for downloading this release of the Java TM Platform, Standard Edition Development Kit (JDKTM). The JDK is a development

Eclipse Download

Download Eclipse from below link

https://www.eclipse.org/downloads/package

s/release/kepler/sr2

Page 10: Java setup - Yola · Java SE Development Kit 8 Downloads Thank you for downloading this release of the Java TM Platform, Standard Edition Development Kit (JDKTM). The JDK is a development

Java Interfaces

T. Atheer Aldwighri

Page 11: Java setup - Yola · Java SE Development Kit 8 Downloads Thank you for downloading this release of the Java TM Platform, Standard Edition Development Kit (JDKTM). The JDK is a development

Create new project

• File New Java project

Page 12: Java setup - Yola · Java SE Development Kit 8 Downloads Thank you for downloading this release of the Java TM Platform, Standard Edition Development Kit (JDKTM). The JDK is a development

Create new project(cont.)

Page 13: Java setup - Yola · Java SE Development Kit 8 Downloads Thank you for downloading this release of the Java TM Platform, Standard Edition Development Kit (JDKTM). The JDK is a development

Create class

Page 14: Java setup - Yola · Java SE Development Kit 8 Downloads Thank you for downloading this release of the Java TM Platform, Standard Edition Development Kit (JDKTM). The JDK is a development

Create class (cont.)

Page 15: Java setup - Yola · Java SE Development Kit 8 Downloads Thank you for downloading this release of the Java TM Platform, Standard Edition Development Kit (JDKTM). The JDK is a development

Write program

1- Write below statement

System.out.println("Hello World!") ;

2- then Run program

Page 16: Java setup - Yola · Java SE Development Kit 8 Downloads Thank you for downloading this release of the Java TM Platform, Standard Edition Development Kit (JDKTM). The JDK is a development

Program output

Page 17: Java setup - Yola · Java SE Development Kit 8 Downloads Thank you for downloading this release of the Java TM Platform, Standard Edition Development Kit (JDKTM). The JDK is a development

Summary

• Setup requirements for Java.

• Java setup by install both JDK and Eclipse.

• Eclipse test.