Java Tutorial: How to install Java and the Eclipse IDE on Windows

Here is the second part of the series with instructions on installing the Java IDE. In the last part we covered the installation of the Java and Apache Netbeans IDE on Windows. And in the third part we covered the installation of Java IntelliJ IDEA. Today we’re going to show you how to install Java and the Eclipse IDE on a Windows machine, step by step.

Java tutorial: how to install Eclipse on Windows
Java tutorial: how to install Eclipse on Windows

V článku sa dozvieš:

    Eclipse is open-source software, popular among Java developers because it is a Java-based development environment that has been around for more than 20 years. In that time, it has built up a huge user community. It has a wide range of plugins to help you customize the environment to suit your project. Eclipse supports multiple languages such as Java, C, C++, HTML, PHP and many more. In addition, Eclipse includes advanced tools such as DOCKER to better organize your project packages and support for GIT to track changes to existing files.

    However, it is important to note that the choice of an IDE (integrated development environment) is subjective and depends on personal preferences and project requirements. Some developers may prefer NetBeans or IntelliJ IDEA over Eclipse out of personal preference. It’s always a good idea to try out different IDEs and see which one suits you best.

    Before we start, it’s important to mention that Java is always installed before Eclipse, as it depends on it and will save you unnecessary trouble later.

    Java installation:

    Step 1: Download the latest version of Java from the official website – Java download:

    There are Windows, Linux and MacOS versions available. Select the Windows version.

    Choosing the right Java JDK version
    Choosing the right Java JDK version

    Step 2: Once the download is complete, double-click on the downloaded file to start the installation.

    Step 3: Click Next and select the path where you want to install Java (we recommend leaving the default path), then click Next to start the installation.

    Java JDK installation process
    Java JDK installation process

    Step 4: Once the installation is complete, you can still view the documentation on the Oracle website by clicking the Next Steps button.

    Click Close to complete the installation process.

    Step 5: Verify that Java is correctly installed by opening a command prompt (cmd command) and typing java -version. If Java is installed correctly, the version number should be displayed.

    The JDK installation is successful if it displays the installed version number
    The JDK installation is successful if it displays the installed version number

    Installing the Eclipse IDE

    Now that we have our preferred version of Java installed, we will install the Eclipse IDE.

    Step 1: Download the latest version of Eclipse from the official website – Java Eclipse download.

    Eclipse always offers the latest version for download
    Eclipse always offers the latest version for download

    Step 2: Downloading the Eclipse IDE for Java developers is easy as it will automatically offer the latest version of the program and the default download location. Press Download on both screens.

    Select the location from which to download the software
    Select the location from which to download the software

    Step 3: Once the download is complete, double-click the Eclipse executable file to launch the Eclipse installer.

    Step 4: You will be given the opportunity to select the Eclipse configuration that suits your needs. Select the first option as we will be using Eclipse primarily for Java application development.

    Eclipse offers many configurations to choose from
    Eclipse offers many configurations to choose from

    Step 5A: The following screen allows you to select the installation directory. However, if you see a red rectangle with an error, it means that the directory you have selected is read-only, so you will need to re-run the Eclipse installation, this time with administrator privileges. Alternatively, select another directory where you have write access.

    You need administrator rights to write to the selected directory
    You need administrator rights to write to the selected directory

    Step 5B: After running the Eclipse installation with administrator rights, the previous error message has disappeared and the Install button is available. Before you press it, you may notice that Eclipse has automatically detected where you have installed the Java JDK. Click on Install.

    Eclipse installation is very user friendly, it detects the correct Java JDK version by itself
    Eclipse installation is very user friendly, it detects the correct Java JDK version by itself

    Step 6: During the installation, you may be surprised by a new window asking if you trust unsigned content. This happens because the Eclipse version does not yet know the latest versions of the identifiers from the JDK packages. Tick the Select All box and press the Trust Selected button.

    You may also encounter unsigned package contents during installation
    You may also encounter unsigned package contents during installation

    Step 7: If the installation is successful, click Launch to start Eclipse.

    This is what a successful Eclipse installation looks like
    This is what a successful Eclipse installation looks like

    Step 8: In the initial window, Eclipse asks you where you want to create your workspace.

    If you are happy with the default path, click Launch.

    Eclipse needs to know where your workspace will be - Workspace
    Eclipse needs to know where your workspace will be – Workspace

    Congratulations! You have successfully installed Java and Eclipse on your Windows machine. You’re now ready to start programming in Java.

    Eclipse welcome screen
    Eclipse welcome screen

    About the author

    Jozef Wagner

    Java Developer Senior

    I have been programming in Java for more than 10 years, currently I am working in msg life Slovakia as a senior Java programmer and I help customers to implement their requirements into Life Factory insurance software. In my free time I like to relax in the mountains or play a good computer game.

    Let us know about you