Eclipse installation introduction

Time:2020-5-27

preface

If you want to work well, you must first make use of your tools. At present, the mainstream tools for java development are idea and eclipse. I personally prefer idea, but company projects need to use eclipse. Both of these tools need to be mastered eventually, so I first explored eclipse.

Install JDK

If you are developing in Java for the first time, installing JDK is a necessary step. Strictly speaking, JDK is divided into two parts:

  • JDK: JDK itself, the development library that Java development needs to use, is for developers.
  • JRE: Java program runtime. If you only run Java programs, it is enough to install JRE. Of course, if you install JDK, JDK will bring JRE.

Next, we need to consider the version of JDK. Up to now, the latest version is JDK 14. Note that the version needs to be selected according to my own situation. I use JDK 8. Enter the JDK download page of Oracle company, find the required version of JDK and download it.

Eclipse installation introduction

To download, you need to register your Oracle company account, which is free. Just register and download directly. After downloading and installing according to the default settingsC:\Program Files\JavaThe JDK and JRE directories can be found under.

Eclipse installation introduction

After entering the JDK directory, you can find that the JDK contains JRE, so it is optional for development to install only the JDK without JRE.

Eclipse installation introduction

JDK 8 comes with a configuration program, which can set the installed Java platform after running. You can see that the configuration program has set the system environment variables for us. For the old version of JDK, you may need to manually set the system environment variables.

Eclipse installation introduction

You can continue to install other versions of JDK, they will not conflict.

Install eclipse

First of all, you need to have a brief understanding of the design philosophy of eclipse software. Eclipse is a platform, not only for java development, but also for other languages. To install eclipse, you actually need to install three parts:

  • The Eclipse platform itself.
  • Eclipse integrated java development tools.
  • Plug ins and extensions.

After understanding this part, you can go to the software download page of eclipse company to download eclipse. As with JDK, you need to determine the eclipse version, because some required plug-ins and extensions do not support the latest eclipse version, and you need to choose and choose appropriately. Here I choose to download eclipse 2019-12 (4.14).

Eclipse installation introduction

After downloading, you will get an installation program, which is the eclipse installer, which can be understood as the software management program of eclipse. First, install this installer. To facilitate subsequent software management, I created a new directoryC:\Program Files\Eclipse_2019_12Used to store subsequent installation files.

After entering the installation wizard, select advanced installation mode.

Eclipse installation introduction

Select Yes to save the copy of eclipse installer for subsequent software management.

Eclipse installation introduction

Save to the directory previously established.

Eclipse installation introduction

The following three options need to be noted in the next wizard page:

  • Product version: This is the software version of the Eclipse platform and Java toolset that needs to be installed. This is the software that needs to be used for real development.
  • Java 1.8 + VM: JDK version, select as needed.
  • Bundle pool: the package management directory that eclipse installer will use. Its function is to manage the packages needed by eclipse software in one directory, which is convenient for organization and improves the efficiency of installation and uninstallation.

Product version still selects 2019-12 version.

Eclipse installation introduction

Select JDK 1.8 for Java 1.8 + VM.

Eclipse installation introduction

For the convenience of management, the bundle pool can be modified to the directory previously established, and the default bundle pool can be deleted.

Eclipse installation introduction

Then choose eclipse IDE for Java developers to install eclipse.

Eclipse installation introduction

You can also choose to install eclipse in the directory you created earlier.

Eclipse installation introduction

After the installation, you can start eclipse (for Java), and the working directory can also be put into the directory established before.

Eclipse installation introduction

Note that the eclipse installer and eclipse (for Java) willC:\Users\{User}Under the directory, create three new folders: Eclipse,. P2, and. Tooling. Because I modified the default bundle pool, it can be deletedC:\Users\{User}\.p2catalog.

Eclipse localization

The eclipse Chinese language pack is installed as an extension. First, you need to download the language pack Babel. Since the latest package only supports version 2019-12 at present, this is also an important reference for me to select eclipse version before.

Eclipse installation introduction

After downloading, for the convenience of management, I can unzip it to the previously established directory. My unzip location isC:\Program Files\Eclipse201912\products\babel-R0.17.1-2019-12

Start eclipse and select Help – > install new software.

Eclipse installation introduction

Next, you need to import the language pack you just unzipped, choose to add a warehouse location, find the corresponding directory, and name the added warehouse.

Eclipse installation introduction

After that, simplified Chinese is filtered out. Note that Chinese may not be complete. The percentage behind the package indicates the integrity of Chinese. Here, you can only choose to install the simplified Chinese localization package of eclipse. Other localization packages are for some other plug-ins, which can be installed later as required.

Eclipse installation introduction

Installation is complete. It should be noted that some plug-ins have problems with the Chinese package, which may lead to UI errors. At this time, you may need to reinstall the language package or even the eclipse software, so you need to install it carefully.

Uninstalling eclipse

Uninstalling eclipse is very simple, because the installation directory was planned in the early stage, just delete the corresponding directory directly. The bundle pool in eclipse installer also provides help for quick installation and uninstallation of eclipse.

epilogue

Eclipse is open-source software, not as convenient as commercial software. There are still many places to customize. The purpose of a tool is to achieve its ultimate goal. You should not spend too much time on the tool itself. This article can be used as an introduction to eclipse installation or as a memo for future reference.