How to Install Eclipse IDE for Java on Windows 11

By Aditya Dhanraj Add a Comment 5 Min Read
How to Install Eclipse IDE for Java on Windows 11

If you don’t know about Eclipse IDE then let me tell you that Eclipse is an Integrated Development Environment used for computer programming. It is most famous among Java developers because it is widely used in Java development. Here in this article, we are going to discuss how to install Eclipse IDE for Java on Windows 11.

Setting up Eclipse IDE for Java Development on Windows 11 is very easy. However, before installing Eclipse IDE, you need to install and set up Java JDK on your Windows 11 PC. We already have a detailed guide on it, you can follow the linked guide.

How to Download and Install Eclipse IDE on Windows 11

Downloading Eclipse IDE is very easy. Just open your browser, search for Eclipse IDE, and open the link from eclipse.org. Then, click on the Download button to download the latest version of the Eclipse installer file. After completing the download, follow the following steps to install it.

In this section, we’ll discuss the steps to install the Eclipse IDE (Integrated Development Environment) on Windows 11.

1. After the download is complete, open the Eclipse installer file.

2. If you find any notification regarding the update. You need to update the Eclipse installer file before installing Eclipse IDE for Java Developers. To do so, simply click on the Hamburg menu and click on the Update button.

3. Now, accept the license agreement.

4. After the updates get installed, press OK to restart the Eclipse installer file.

Eclipse Installer Update

5. You can click the Eclipse IDE for Java Developers option if you don’t find any update notification. Then select the Java Installation Folder and the location where you want to install Eclipse IDE. 

6. After that, click on INSTALL and accept the license agreement to install Eclipse IDE for Java Developers. (An active internet connection is needed to install Eclipse IDE).

Note

You can also use Eclipse IDE for other programming languages such as C, C++, PHP, and JavaScript.

Installing Eclipse IDE on Windows

7. After the installation is complete, click on the LAUNCH button to open Eclipse IDE.

Eclipse Launch Window

Creating Workspace Location

After the installation is complete, launch the Eclipse IDE. By default, it will create a workspace location. If you want, you can change it. I’ll suggest you keep it default and click the Launch button to continue.

Selecting a Directory as Workspace

After all these, you are ready to use the software for your Java Project.

How to Create First Java Project using Eclipse IDE

Now, let’s discuss; how we can create a Java project using Eclipse on Windows 11.

For that, follow the steps mentioned below:

1. Click on File > New > Java Project and name your project.

2. Then, click on the Finish button.

Creating a Java Project on Eclipse

3. Now, name your module to create a new module-info.java file and click the Create button to continue.

Create Module Info File

4. Before you create your Java class file, you have to create a Package. To create, right-click on the src folder from Package Explorer > New > Package and name your Java Package (package names usually start with a lowercase letter).

5. Click on the Finish button.

Java Package Settings

6. Now, to create a class file, right-click on the src folder from the Package Explorer > New > Class, name your Java Class file ( Class names usually start with an uppercase letter), and select the public modifier.

7. After that, select the public static void main(String[] args) method.

8. Then, click on the Finish button.

Java Class Settings

9. Now, you can write your Java code. After that, to run your Java file, click on Run from the toolbar or use the shortcut key Ctrl + F11.

Here is an example of Hello World in Java:

package demo;

public class MyClass {

  public static void main(String[] args) {
  // TODO Auto-generated method stub

	 System.out.println("Hello World!");
	 System.out.println("Welcome to thecoderworld.");
   }

}

Conclusion

That’s it; this is how you can install Eclipse IDE on Windows 11 for Java Development. However, if you are facing a problem, it might be due to Java JRE. To fix it, check out our guide on setting up Java JRE on Windows. This will fix the Eclipse no Java Virtual Machine was found error. Also, note that for Java JDK 22, you have to add Java 22 Support for Eclipse.

TAGGED:
Follow:
Aditya Dhanraj is a Web Developer by profession and Content Writer by passion. He loves to write about coding and programming. When he is not writing, he must be developing something!
Leave a Comment

Leave a Reply

Your email address will not be published. Required fields are marked *