Java setup - WordPress.com · Java SE Development Kit 8 Downloads Thank you for downloading this...

Post on 25-Aug-2020

4 views 0 download

Transcript of Java setup - WordPress.com · Java SE Development Kit 8 Downloads Thank you for downloading this...

Java setup

Latifah Altraiki

Objective

In this lab you’ll:

• Setup requirements for Java .

• Java setup by install both JDK and Eclipse.

• Eclipse test.

Java program execute

.java .class

Java setup

• First, Install JDK

• Second, install Eclipse

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

JDK download

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

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

JDK download(cont.)

• Create Oracle account.

JDK install

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

JDK install (cont.)

Eclipse Download

Download Eclipse from below link

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

s/release/kepler/sr2

Java Interfaces

T. Atheer Aldwighri

Create new project

• File New Java project

Create new project(cont.)

Create class

Create class (cont.)

Write program

1- Write below statement

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

2- then Run program

Program output

Summary

• Setup requirements for Java.

• Java setup by install both JDK and Eclipse.

• Eclipse test.