Provides all the steps required to install Eclipse for Java Development on Windows 10 and getting started with Java development using the Hello World example.

How To Install Eclipse For Java On Windows
How To Install Eclipse For Java On Windows
September 18, 2019

Eclipse is the most popular IDE used for Java application development. The other popular options for Java development include IntelliJ IDEA, VSCode, and NetBeans.

Notes: It assumes that Java is already installed on the system. You may also be interested in How To Install OpenJDK 13 On Windows and How To Install Java 11 On Windows. You can also follow How To Install IntelliJ IDEA for Java on Windows to install IntelliJ IDEA on Windows 10.

Download Eclipse For Java

Open the Eclipse Packages Page to view the various Eclipse packages distributed by the Eclipse community. It lists the Java packages as shown in Fig 1.

Eclipse Packages

Fig 1

Eclipse IDE for Enterprise Java Development and Eclipse IDE for Java Developers are the popular Java packages distributed by the Eclipse Foundation. I will cover the installation of Eclipse IDE for Java Developers and creating the Hello World Project to print Hello Java !! on the console. The same steps can be followed to install Eclipse IDE for Enterprise Java Development.

Click on the link Eclipse IDE for Java Developers to view the description, features, and download options as shown in Fig 2.

Eclipse for Java - Info

Fig 2

Click on the Windows 64-bit Link to view the download locations for Eclipse For Java Developers as shown in Fig 3.

Eclipse for Java - Download

Fig 3

Click on the Download Button to start the download.

Install Eclipse For Java Developers

In this step, we will install Eclipse for Java as downloaded by us in the previous step. Extract the Eclipse file downloaded by us to the preferred location. It should be similar to the one as shown in Fig 4.

Eclipse for Java - Installed

Fig 4

You may also create the Desktop Shortcut to launch it from the desktop.

Launch Eclipse and Configure Workspace

In this step, we will execute the Eclipse and configure the workspace. A workspace is a collection of projects and arrangement of the development IDE.

Start Eclipse by either clicking the executable file from installation path or the desktop shortcut icon created by us. It will show the splash screen and show the dialog to choose workspace as shown in Fig 5.

Eclipse for Java - Workspace Selection

Fig 5

Make sure that you have kept the checkbox to choose workspace at start of Eclipse as unchecked so that we can select a different workspace at the start of Eclipse.

Now click on the Launch Button to launch the Eclipse IDE with the selected workspace. The Eclipse will show the welcome screen as shown in Fig 6.

Eclipse for Java - Welcome

Fig 6

Close the Welcome Screen. The default workspace looks like the one as shown in Fig 7.

Eclipse for Java - Layout

Fig 7

Hello World Project

In this step, we will create the Hello World Project and print Hello Java !! on Console. Click on File -> New -> Java Project to start creating the project. It will show the Create Java Project Wizard as shown in Fig 8 and Fig 9.

Eclipse for Java - New Project

Fig 8

Eclipse for Java - Project Config

Fig 9

Click on the Next Button to continue with Java Settings as shown in Fig 10.

Eclipse for Java - Project Settings

Fig 10

Now click on the Finish Button to create the Project. It will also ask to create the Module as shown in Fig 11.

Eclipse for Java - Project Module

Fig 11

I have skipped creating the module as part of this tutorial. Finally, it will create the project and show it on the Projects Panel as shown in Fig 12.

Eclipse for Java - Project Default

Fig 12

Now we will create the java file HelloJava.java. Right-click on the src folder, select New and click on the Class option to start creating the Java class file. It will show the New Java Class Dialog as shown in Fig 13 and Fig 14.

Eclipse for Java - New Class

Fig 13

Eclipse for Java - Class Config

Fig 14

Click on the Finish Button to create the Java Class using the class package as shown in Fig 15.

Notes: In case you have installed the most recent version of Java i.e. JDK 13, you might see errors specific to the build path. You can fall back to using the JDK 12 or older versions of JDK.

Eclipse for Java - Class File

Fig 15

Now update the HelloWorld class as shown in Fig 16.

Eclipse for Java - Class Updated

Fig 16

Now right click on the HelloWorld.java and choose File -> Run As -> Java Application to compile and execute the program. It will show the output on Console as shown in Fig 17 and Fig 18.

Eclipse for Java - Run

Fig 17

Eclipse for Java - Output

Fig 18

This is how we can install Eclipse for Java Developers on the Windows systems and create the project and execute Java programs.

Write a Comment

Click on the captcha image to get new code.
Discussion Forum by DISQUS