Using Eclipse-maven-git for Java Development (3)--eclipse installation and configuration

Source: Internet
Author: User
Tags gtk

The contents of this article need to install the JDK and Maven first, that is, the previous two steps are completed and then follow the steps described in this article;

Although many people say that using idea is more Barth, but using eclipse for a long time, many habits have been developed, tried to use idea, but did not adapt, I believe there are many people like to use eclipse, then I will explain how to install and configure eclipse;

The previous blog has been published for a long time, I would like to send before, the draft has been written, but this is not a new version released, so simply update to the latest version of the re-release good;

0. Description

I usually use STS on Windows 7 (Spring Tool Suites, a custom eclipse for spring development), so the platform is based on the Windows 7 system, and Eclipse will first explain the official version, Then the main STS for the interpretation of the object, but they are generally consistent, so that the operation is the same;

At the same time, recommend that you use STS, really very useful, as for myeclipse, it is recommended that you do not use it;

1. Prepare resources

First, the official website address: http://www.eclipse.org/downloads/

Provides a lot of packaging version, for different use environment, the integration of different development plug-in, because the vast number of developers are inclined to develop web-related programs, it is recommended that you download the Java EE version: http://www.eclipse.org/downloads/ Packages/eclipse-ide-java-ee-developers/marsr

Here are also a few mirror addresses:

http://mirror.hust.edu.cn/eclipse/technology/epp/downloads/release/

http://mirrors.neusoft.edu.cn/eclipse/technology/epp/downloads/release/

http://mirror.bit.edu.cn/eclipse/technology/epp/downloads/release/

You can download the appropriate version as needed;


For STS, because the STS is provided by spring official, it needs to be downloaded on the official website: http://spring.io/tools/sts/all

You also need to select the correct operating system and architecture when downloading.

Here are a variety of versions of the download link, Direct Thunder bar, no, no, no:

http://dist.springsource.com/release/STS/3.7.0.RELEASE/dist/e4.5/ spring-tool-suite-3.7.0.release-e4.5-win32-x86_64.ziphttp://dist.springsource.com/release/sts/3.7.0.release/ dist/e4.5/spring-tool-suite-3.7.0.release-e4.5-macosx-cocoa-x86_64.tar.gzhttp://dist.springsource.com/release/ sts/3.7.0.release/dist/e4.5/spring-tool-suite-3.7.0.release-e4.5-linux-gtk.tar.gzhttp://dist.springsource.com/ Release/sts/3.7.0.release/dist/e4.5/spring-tool-suite-3.7.0.release-e4.5-linux-gtk-x86_64.tar.gz

For some specific needs, the historical version of the download: http://spring.io/tools/sts/legacy, but I do not recommend the use of historical version;

2. Install the official version eclipse

In fact, Eclipse does not need to "install", just need to extract the downloaded files can, of course, need to find a fixed directory, and preferably not have Chinese characters, spaces, special characters, etc., otherwise there may be some incomprehensible problems;

I downloaded the eclipse-jee-mars-r-win32-x86_64.zip to demonstrate, extracted to the root of the D drive, in fact, each version of the eclipse download to unzip the file structure is the same-a root directory called "Eclipse", Then the subdirectory has

The "Eclipse.exe" in this directory is the boot file, you can set up a shortcut to the desktop, later easy to start;

At startup, the Eclipse logo appears, and then you need to wait a while, and then a window to select a workspace, which requires a fixed path to be selected, and all of the eclipse projects and configurations will be saved here by default.


3. Installing STS

In fact, STS and the official version of Eclipse is the same, but also do not need to "install", only need to decompress, unzip the directory structure is the same, son but in the official download of the package there are some other things, For the spring-tool-suite-3.7.0.release-e4.5-win32-x86_64.zip i downloaded, open the zipped package, which has a folder, like this

Open this folder again, there are 3 folders, like this

We only need the "sts-3.7.0.release" inside, if you download the other version, then the name of this folder is not the same, this file folders I also extracted to the root of the D disk;

4. Configuring Eclipse

After startup there is a welcome screen, close it, and then the general situation is this

Configuring eclipse first needs to go to the "preferences" configuration, which is how to find "window" in the top menu bar window->preferences

The items to be configured are:

1, the text display of the font size (the default font size display Chinese is too small, the individual think set to 12th appropriate); 2. Open the default editor for various types of files (such as opening HTML, default is to use the editor with real-time preview, too slow is not practical), 3, the default character encoding of the workspace (default GBK, Need to be modified to UTF-8), 4, the default startup items (default will start some unwanted things, slow down the speed), 5, jre;6, code format, 7, maven;8, Server (Java EE server environment), 9, the Web file character encoding, template; 10, Miscellaneous of other kinds;

The configuration of a lot of wood there? Just slowly or can, the following is a few simple, for everyone's reference







In accordance with the above configuration, about the better, specific also some things, you need to use in the constant according to their own preferences adjusted


5, installation of practical plug-ins

Eclipse is based on plug-ins, including all of the features we use in fact are some plug-ins to complete, but these plug-ins are released from the beginning of the package, including the STS I said, in fact, is the spring add some plug-in version, but want to use comfortable, We need to add a few more plug-ins, below I would like to list the plug-ins I think need to install, by the way how to install plug-ins;

① using URLs to install online

This shows a plugin installation of the Properties Editor, which automatically implements Unicode conversion of Chinese or other non-English characters, thus enabling direct editing of the properties file, the address is

http://propedit.sourceforge.jp/eclipse/updates/

Menu bar Help->install New software, in the popup box:


After selecting the plugin to install, go to Next, agree to install the license, restart it.

② installing directly using the installation package

Some plugins provide offline installation package, can be installed directly offline without online installation, here with an anti-compilation tool JD For example, his offline installation package at this address has

Https://github.com/java-decompiler/jd-eclipse/releases

We download the name with "site", I downloaded "jd-eclipse-site-1.0.0-rc2.zip"

Use the "Archive ..." button in the pop-up box in the previous step to locate the file, and then follow the same steps as using the URL to install online.

③ placing plug-in files directly in the specified directory

This way to install some plug-ins are problematic, so it is not recommended, but there are a few very small plug-ins so the installation is very effective and convenient, Openexplorer is one of the plug-in can open the workspace files in the system location, use is also very convenient

Https://github.com/samsonw/OpenExplorer/releases

Put the downloaded files in the Eclipse installation directory "dropins" directory and then restart Eclipse, some plug-ins downloaded files need to be extracted before the line oh;

④ using Eclipse Marketplace installation

In the "market" provides a large number of plug-ins, official unofficial, free of charge, their own input key search can, enter the way for Help->eclipse Marketplace ...


Search for the plugin you need and click Install later, then follow "next" to do it.

6. A black theme with forced lattice

Before Eclipse was no black theme, added black theme in 4.4, but there are some less perfect places, in the new 4.5 is already very perfect, with the natural is quite good, the focus is the force lattice Ah,

Go to preferences, and then set the use black theme as

That's how it works after confirmation.

But the specific text color is still not very comfortable, in eclipse Marketplace has a plug-in Eclipse color theme provides a variety of editing areas of the color combination scheme, through the use of a program named Obsidian is particularly comfortable, and then used up, But then it turns out that there is a bit of a conflict with the black theme in it, as follows: Each time you restart Eclipse, you need to reapply the color scheme. After enduring a period of time, it is really unbearable, but finally found a solution---------directly import the color matching option configuration, the following description of the practice

The plug-in provides a variety of color schemes here

http://eclipsecolorthemes.org/

See the topic you like to go to the page, download the corresponding EPF file, such as I downloaded is obsidian file


The Import method is: Menu bar File->import ...


Then find the downloaded file, check the import all,


After the application will see the effect, after the actual test, restart no longer need to re-select the application color scheme, with effect:

7. Summary

Details of the eclipse's download, installation, configuration, plug-in installation and other use of the basic preparation of eclipse, although there are some details of the place did not drop, but everyone in the specific use of the process should be comprehend by analogy, we will be in the use of the later slowly groping experience it;

In the article also said, STS is based on Eclipse, add some easy to spring development of plug-ins, although the text is heavily used in the official eclipse, but later post, the description will be based on STS, but this difference is almost negligible, and we do not need too much concern, Here is just a description, lest later see the program icon does not create doubts;

enjoy!

The next section begins with building engineering and writing code in eclipse

Use Eclipse-maven-git for Java Development (3)--eclipse installation and configuration

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.