Preparation of common development environments and development tools for individuals, and preparation of development tools

Source: Internet
Author: User

Preparation of common development environments and development tools for individuals, and preparation of development tools

First, I did java web development, at least for the time being. Therefore, this article, including later articles, should be based on this premise.

This article introduces jdk and eclipse (which will be supplemented later, including mysql and tomcat)

 

JDK

Obviously, as a Java developer, JDK configuration cannot be installed. I will not talk much about the installation process. Except for the installation path, you can select the next step as per your preferences.

Environment variable configuration: (right-click computer> advanced system Settings> "advanced" option, environment variable> Add in system variable)

1. Create a JAVA_HOME variable with the variable value: D: \ Java \ jdk1.7.0 _ 02 (depending on the installation path)

2. Create a classpath variable with the variable value:.; % JAVA_HOME % \ lib \ tools. jar (note that there is a point at the beginning)

3. Add the variable value; % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin after the path variable (there is a semicolon at the beginning for separation)

 

Eclipse

Java is the most commonly used development tool. It can be used only after decompression.

This section lists the frequently used configurations for my first use. Other eclipse-based IDE development tools can also refer to this configuration. (For example, Spring Tool Suite released by springMVC)

Each of the following settings is in Window> Preferences.

Note that after each setting, you can click the "Apply" button in the lower right corner to save it. You do not need to click OK to exit.(I did this when I was young ...)

1. Set the default encoding format (UTF-8)

General-> Workspace panel Text file encoding select UTF-8

General-> Content Type-> Text-> JSP is set to UTF-8 at the bottom (you can set as many as needed)

Web-> JSP Files panel select ISO 10646/Unicode (UTF-8)

General-> Editors-> Text Editors-> Spelling panel Encoding select UTF-8 (this is generally used when Spelling check, do not set the relationship is not big)

2. Set to use your own jdk

Java-> Installed JREs add your own jdk, and tick it to set it as the default option

Java-> Compiler sets the compilation level to the corresponding level of your jdk (you need to modify it only when your jdk level is different from the original one)

3. Adjust the default font size

General-> Appearance-> Colors and Fonts-> Basic-> Text Font double-click to modify the Font and size.

4. Configure servers such as Tomcat

Server-> Runtime Environments: Add a self-installed server, for example, tomcat (some integrated ides will bring their own Server without configuration)

5. Code prompt

Java-> Editor-> Auto Activation module in Content Assist (the Code prompts here are only applicable to java code)

Auto activation delay (MS) is the number of milliseconds that prompt the code to appear, I usually set it to 20, give me and the computer a little reaction time wait ( ̄) Wait

Auto activation triggers for Java will prompt after you enter this Code. The default value is "dot". Generally, 26 letters are appended to it: abcdefghijklmnopqrstuvwxyz.

Prompt when Auto activation triggers for Javadoc is used to edit the java instruction document

Web-> HTML Files-> Editor-> Auto Activation module in Content Assist (the Code prompts here are only applied in html, including html code in jsp Files)

Auto activation delay (MS) is the number of milliseconds that prompt the code to appear, I usually set it to 20, give me and the computer a little reaction time wait ( ̄) Wait

The default value of Prompt when these characters are inserted is <=. Generally, spaces and 26 letters are added to the backend: abcdefghijklmnopqrstuvwxyz. Spaces are usually entered in html code. You can decide whether to add spaces based on your actual needs.

6. Set the default file opening method.

General-> Editors-> file Associations select the file to be modified, select the default open mode below, and click Defaule

7. Common shortcut keys

There are a lot of articles on the Internet, so I won't talk about them here.

8. Plug-in Installation Method

I usually search for the required plug-ins online in Help-> Eclipse Marketplace for installation. Alternatively, you can directly Install the plug-ins you know in Help-> Install New Software.

 

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.