Last Updated:

Install and configure Eclipse

Eclipse is a universal software development environment for computers and mobile devices in a variety of programming languages. It includes a rich set of classes and libraries that expand the development capabilities, as well as built-in tools for creating mobile applications. Most often it is used for programming in Java.

Before you download and install Eclipse

To install Eclipse, you will need to install the JDK and JVM to develop Java applications in Eclipse. To do this, go to the website, find the desired version of Java and select Download JDK. In the window that opens, select the package for the desired operating system and download it.

Install and configure Eclipse

Next, you need to install the JDK by following all the instructions in the installer. After the initial installation of the JDK is complete, a pop-up window will prompt you to set the location address of all Java files. You can set your own address or leave it as a default. After the package installation is complete, you are ready to install Eclipse.

Install and configure Eclipse

Download and install Eclipse

Download Eclipse in the following order:

  1. Go to the official Eclipse website
  2. Go to the Download section and then download 2021-06.
    Install and configure Eclipse
  3. Click on the orange button labeled Download x86-64 b and download the installation file.

Install Eclipse in the following order:

  1. Run the downloaded installer and click Run.
  2. Next, from the list, you need to select a package that is more suitable for Java development. There are packages for other languages in the list as well. Here, the Eclipse IDE for Java Developers provides a basic feature pack, and the Eclipse IDE for Enterprise Java Developers is extended for experienced developers.
    Install and configure Eclipse
  3. Select the Eclipse installation path as well as the path to the JDK files and click Install
    Install and configure Eclipse
  4. Wait for the end of the installation.

Set up Eclipse

After you run Eclipse for the first time, a window will immediately open where you will be prompted to specify a folder for the projects you are developing. You should specify the desired path or leave it as the default and click "Next".

Install and configure Eclipse

Then, in the Eclipse desktop window that opens, click File, then select New -> Project. The Project Type Selection window opens. Select Java Project and click Next. The project setup window opens. Here you need to specify any name for the project. And install the version of the JRE that will be used in the project. Its name can be left by default. But if desired, you can install the version that was downloaded to the computer.

Install and configure Eclipse

The rest can be left as default. Then click "Next" and in the window that opens, write any name of the project. However, this operation is not required, so you can click the Don't Created button to cancel it. In the next window there will be a question: do I need to disclose the project? Click the Open Perspective button here. The project then opens in the main development window. If for some reason the project does not open, you can click "Restore" in the upper left corner of the workspace.

Initially, the project will be empty and a field will open before the programmer. On the side of the development field will be a guide through the folders and files of the project. For more information, all the project files are located in the src folder. You need to right-click on this folder and in the menu that opens, select New, and then Class. A dialog box opens for the new class settings.

Install and configure Eclipse

Here, in the Name field, you need to specify the name of the class and assembly (package). The rest of the settings at first leave the default, as they are for more experienced users. Click Finish. A new class with the Main function then appears in the project. Its file can be seen in the src folder, where the name of the assembly will be indicated, and the file of the class itself will be in it. When you open this file in an Eclipse workspace, you'll see the Java code for the class itself. You can run the program by clicking the start button at the top of the screen, as shown in the picture.

Install and configure Eclipse

In the Output window, the result of the executed program will be displayed.

Any generated classes and other files in the project will be saved directly to the root folder of the project that you specified when you created it. By creating new classes, you can connect them to your project through dialog boxes. The Eclipse development environment allows you to create many different projects - console, with forms, as well as test projects on virtual smartphones.

Eclipse allows you to install extensions that increase its capabilities. However, it is worth remembering that due to the presence of a huge number of resource files, the program is demanding on computer resources. Of course, in the program itself, you can remove unnecessary tools and increase the speed of Eclipse itself. However, this is not recommended at the stage of acquaintance with it.

What's next?

You can edit the generated class by writing the main code in the program. You do not have to create new classes through the control panel. Java allows you to create separate classes in the main program file. However, if you still decide to create individual classes through the context menu, then you will need to connect them to the project through import.

You can extend the capabilities of Eclipse by installing extensions that allow you to visualize the programs you create. So it can be Windows Forms or a virtual smartphone. Eclipse itself is designed to make life easier for developers. Without an IDE, program texts are written in text files and compiled in the console. The user needs to constantly write unnecessary commands and connect libraries and classes manually.

When the ready-made IDE itself connects the extensions as it should, assembles the project into one whole and gives a ready-made apk or jar file that is ready to be installed and used on the device. In addition, Eclipse is equipped with an excellent system for debugging programs and step-by-step execution of commands, which allows you to track the order of execution of program code.