How to Install Eclipse on Windows 11

In this guide, we will show you how to install the Eclipse IDE step-by-step on Windows 11. We also cover creating a simple Java project, a Hello World program, and running a Java program.

Eclipse is a powerful and free Integrated Development Environment (IDE) for writing, testing, and debugging Java programs.

YouTube Video

We recommend watching the YouTube video below to learn how to install the Eclipse IDE step-by-step on Windows 11 and create a simple Java project with the Hello World program.

Why Should You Use Eclipse?

  • Beginner-friendly: It’s easy to start with Eclipse, even if you are new to coding.
  • Powerful features: Eclipse provides code suggestions, debugging tools, and project management features.
  • Free to use: It’s free and widely used by professional developers.

Step 1: Download Eclipse IDE for Java Developers

  1. Visit the official website: Open your browser and go to www.eclipse.org.
  2. Navigate to the downloads page: On the homepage, click Download or go directly to the Eclipse IDE download section.
  3. Select the right version: Look for the package called Eclipse IDE for Java Developers. This version is perfect for Java programming.
  4. Download the installer: Choose the Windows x64 Installer and click the Download button.
Direct link to download the Eclipse IDE for Java developers. 
How to Install Eclipse on Windows 11


Step 2: Install Eclipse IDE on Windows 11

  1. Locate the downloaded file: After the installer (eclipse-inst-jre-win64.exe) has finished downloading, find it in your Downloads folder.
  2. Run the installer: Double-click the installer to open it.
  3. Select the package: When the installer launches, select Eclipse IDE for Java Developers. // Important
  4. Choose an installation folder: You can use the default path or select a custom location. Click Install.
  5. Wait for installation: The process will take a few minutes. Once it’s complete, click Launch to open Eclipse.

Step 3: Set Up Eclipse Workspace

  1. When Eclipse starts for the first time, it will ask you to select a workspace.
  2. The workspace is a folder where all your projects and files will be stored.
  3. Use the default folder path or choose a custom location, then click Launch.

Step 4: Verify Java Setup in Eclipse

Before creating your project, make sure Eclipse is configured to use the correct Java version.

  1. Check installed JDK: Ensure you’ve already installed the latest Java JDK 23. If not, check our Java JDK 23 installation guide.
  2. Configure JDK in Eclipse:
    • Go to Window > Preferences in Eclipse.
    • Navigate to Java > Installed JREs.
    • If your JDK is not listed, click Add, select the path where JDK 23 is installed (e.g., C:\Program Files\Java\jdk-23), and click Finish.

Step 5: Create Your First Java Project in Eclipse

Step 5.1: Create a New Project

  1. Start a new project:
    • Click File > New > Java Project.
    • In the dialog box, enter HelloWorld as the Project Name.
    • Leave all other options as default and click Finish.
  2. Your project is ready:
    • The new project will appear in the Package Explorer on the left-hand side.

Step 5.2: Add a Java Class

  1. Create a new class:
    • Right-click on the src folder in your project.
    • Select New > Class.
  2. Fill in class details:
    • Enter Main as the Class Name.
    • Check the box that says public static void main(String[] args).
    • Click Finish.

Step 5.3: Write Your First Program

  1. In the editor, you’ll see a template for the Main class. Replace it with the following code:
    public class Main {
        public static void main(String[] args) {
            System.out.println("Hello World!");
        }
    }
    
  2. Save your code: Press Ctrl + S or click File > Save to save your work.

Step 5.4: Run Your Program

  1. Run the program:
    • Right-click anywhere in the code editor.
    • Select Run As > Java Application.
    • Alternatively, click the green Run button in the toolbar.
  2. Check the output:
    • Look at the Console panel at the bottom of Eclipse. You should see the output:
      Hello World!

Troubleshooting Tips

  • Java Not Found Error: Ensure Java JDK is installed and properly configured in Eclipse. Check the Preferences > Installed JREs section to verify.
  • Eclipse Not Opening: Ensure your system meets the minimum requirements and that you’ve downloaded the correct version for Windows x64.
  • Workspace Issues: If your projects don’t appear, ensure you’ve opened the correct workspace.

Final Words

Congratulations! You’ve successfully installed Eclipse IDE on Windows 11 and created your first Java project. Eclipse makes it easy to start programming and offers plenty of features to help you grow as a developer. Keep experimenting with new projects and features in Eclipse. Happy coding!

Comments