Eclipse installation and configuration environment tutorial (detailed steps)

 1. Download and installation

1. Download

We can download it directly from the official website of eclipse at the following address: https://www.eclipse.org/downloads/

 You can choose an eclipse version that suits your system. For example, if you click the "Download x86_64" button, you are downloading 64-bit eclipse in Windows, as shown below:

 Generally, just click Download. After clicking the Download button to download, you may jump to a page that requires you to donate money. It does not mean that eclipse requires payment. This is just a request for you to donate money. Don't worry about it.

 2. Installation

After we download eclipse, the eclipse installer.exe installer is downloaded by default. We can click the eclipse installer.exe installer to install it.

2.1 Install JavaEE version

Because we plan to carry out JavaEE enterprise-level development later, we can choose "Eclipse IDE for enterprise Java and Web Developers" for installation.

 Next go to the next step.

2.2 Change the installation directory

Here we can choose to set the installation directory of eclipse and install it.

 2.3 Accept the agreement to install

You can click the "INSTALL" button here to install it. It will then jump to a dialog box, allowing you to choose to decide now or later. We can choose to decide later!

 Accept the installation agreement here and click the Accept button.

 The installation will be carried out at this time. This process will last for a long time, so do not cut off the power.

 2.4 Start the software and set up the workspace

Next, start eclipse and we can associate our own workspace. In eclipse, the workspace is where the Java code we write is stored.

 You can change and set up your own code workspace here.

 After startup, you will enter the default page, and you can use eclipse for development. The installation process is actually very simple.

 2. Configuration

Before officially starting to use it, we can first make some basic settings for eclipse, such as setting the font size, encoding format, etc.

 1. Set skin style

We can choose a skin style we like in General-->Appearance-->Theme. The default is Light style.

 2. Set font size

Expand Appearance-->Colors And Fonts-->Basic and double-click "Text Font" to set the font and font size.

 Choose a font and size you like. Some students like to set the font size very small. Is this to save power? The font is so small that it blinds my eyes.

 3. Set shortcut keys

In General-->Keys, you can cancel or reset existing shortcut keys.

 4. Set encoding

As a future programmer, from the beginning when we learn programming, everyone must develop a habit: after installing the editor, first set the encoding format of your own editor. In most cases, we use UTF-8 format, which is an internationally accepted encoding format. If the encoding format is different from others, garbled characters may appear when Chinese characters are present in the code.

 In addition, you can also hook "Refresh using native hooks or polling" here, so that Eclipse will automatically refresh the folder changes.

5. Set JDK compilation version

We can go to Java > Compiler and set "Compiler compliance level" to 17 or a version of our own. If you remove "Use default compliance settings" and hook "Enable preview features for Java 18", we can use the preview features of Java 18.

Xiaoqian will take everyone to set up so many things first.

Guess you like

Origin blog.csdn.net/longz_org_cn/article/details/128288213