0% found this document useful (0 votes)
184 views2 pages

Steps To Install Java Development Kit (JDK) Step 1: Download JDK

The document provides steps to install Java Development Kit (JDK) and Eclipse IDE for Java development. It outlines downloading the JDK from Oracle's website and running the installer, as well as downloading Eclipse from its website by unzipping the file. It then demonstrates creating a simple "Hello World" Java project in Eclipse, writing a HelloWorld class with a main method that prints "Hello World", and running the program to display the output.

Uploaded by

TrueColors
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
184 views2 pages

Steps To Install Java Development Kit (JDK) Step 1: Download JDK

The document provides steps to install Java Development Kit (JDK) and Eclipse IDE for Java development. It outlines downloading the JDK from Oracle's website and running the installer, as well as downloading Eclipse from its website by unzipping the file. It then demonstrates creating a simple "Hello World" Java project in Eclipse, writing a HelloWorld class with a main method that prints "Hello World", and running the program to display the output.

Uploaded by

TrueColors
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Steps to Install Java Development Kit (JDK)

Step 1: Download JDK


1. Goto Java SE download site
@ http://www.oracle.com/technetwork/java/javase/downloads/index.html.
2. Under "Java Platform, Standard Edition" ⇒ "Java SE 13.0.{x}", where {x} denotes
a fast running security-update number ⇒ Click the "Oracle JDK Download"
button.
3. Under "Java SE Development Kit 13.0.{x}" ⇒ Check "Accept License Agreement".
4. Choose the JDK for your operating system, i.e., "Windows". Download the "exe"
installer (e.g., "jdk-13.0.{x}_windows-x64_bin.exe" - about 159MB).

Step 2: Install JDK


1. Run the downloaded installer (e.g., "jdk-13.0.{x}_windows-x64_bin.exe"), which
installs both the JDK and JRE. By
default, JDK is installed in directory
"C:\Program Files\Java\jdk-13.0.
{x}", where {x} denotes the update
number. Accept the defaults and
follow the screen instructions to
install JDK. Use your "File
Explorer", navigate to "C:\Program
Files\Java" to inspect the sub-
directories. Take note of your JDK
installed directory jdk-13.0.{x}, in
particular, the update number {x},
which you will need in the next step.

Steps to Install Eclipse IDE for Java


Step 1: Download
Download Eclipse from https://www.eclipse.org/downloads. Under "Get Eclipse
IDE 2019-12" ⇒ Click "Download Packages". For beginners, choose the "Eclipse
IDE for Java Developers" and "Windows 64-bit" (e.g., "eclipse-java-2019-12-R-
win32-x86_64.zip" - about 201MB) ⇒ Download.

Step 2: Unzip
To install Eclipse, simply unzip the downloaded file into a directory of your choice
(e.g., "c:\myProject"). I prefer the zip version, because there is no need to run any
installer. Moreover, you can simply delete the entire Eclipse directory when it is no
longer needed (without running any un-installer). You are free to move or rename
the directory. You can install (unzip) multiple copies of Eclipse in the same
machine.
First Java Program

Step 1: Create a Java Project


To create a new Java project in Eclipse, go to File > New > Java Project. The New
Java Project wizard dialog appears let you specify configurations for the project.
Enter project name: HelloWorld. Leave the rest as it is, and click Finish. You
should see the HelloWorld project is created in the Package Explorer
Right click on the project, and select New > Package from the context menu. In
the New Java Package dialog, enter the name your package. Here I
enter net.codejava. Click Finish. You should see the newly created package
appears:

Step 2: Write your First Java Program


To create a new Java class under a specified package, right click on the package
and select New > Class from the context menu:

The New Java Class dialog appears, type the


name of class as HelloWorld and choose the
option to generate the main() method and
click Finish.

Now, type some code in the main() method to print the message “Hello World” to
the console:

package net.codejava;

public class HelloWorld()


{

public static void main(String[] args)


{
System.out.println(“Hello World”);
}

Now, let’s run the hello world application. Click menu Run > Run (or press Ctrl +
F11), Eclipse will execute the application and show the output in the Console view:

Figure 8
https://shorturl.at/uyzR8

You might also like