MyEclipse 2015 optimization tips and myeclipse2015 Optimization

Source: Internet
Author: User

MyEclipse 2015 optimization tips and myeclipse2015 Optimization

The MyEclipse 2015 optimization speed solution still has the following aspects: removing unnecessary modules, removing redundant configurations, removing unnecessary checks, and disabling updates.

). Open Eclipse, and then "window" → "Preferences"

 

2) Select "java", expand, "Editor", and select "Content Assist ".

 

3) Select "Content Assist" and then see the "Auto Activation triggers for java" option under "Auto-Activation" on the right. Actually, the code prompt is triggered by the "." symbol.

 

4). "Auto Activation triggers for java" option,

 

Change ". abc" to ". abcdefghijklmnopqrstuvwxyz (,"

 

In the future, when you enter any letter, it will automatically prompt

 

 

 

4. Chinese Java tips

 

The Chinese javaDoc first downloads the Chinese JavaDOC from FTP. The version is javaSE6.0.

 

Http://download.java.net/jdk/jdk-api-localizations/jdk-api-zh-cn/publish/1.6.0/html_zh_CN.zip

 

In Eclipse, select window --> Preferences --> java --> cmdalljres

 

Click jre6.0 and select Edit on the right.

 

In the displayed form, select rt. jar and click Javadoc Location:

 

Select the following Javadoc in archive, select the Path of html_zh_cn.zip downloaded in Archive path, and Click Browse on the Right of Path within archive.

 

Click the tree structure in the figure until the api node is selected, and click OK for all pop-up forms.

 

The end of javadoc is Chinese.

 

I did not succeed according to the above practice, and a successful colleague contacted me in time.

 

 

 

5. Configure TomCat

 

Myeclipse-Server-atat7.x set the Tomcat path here

 

 

 

Vi. eclipse and myeclipse encoding settings

 

Compile a Web Project in MyEclipse. You need to change the encoding settings in two places:

 

1.

 

Window --> preference --> general --> content type

 

Expand each subitem in <Content Types>, enter "UTF-8" or "GB18030" in <Default encoding>, and click update!

 

2.

 

Window --> preference --> MyEclipse --> Files and Editors

 

Change "Encoding" for each subitem to "ISO 10645/Unicode (UTF-8)" or "Chinese, National Standard", click Apply!

 

All document types created later are in UTF-8 or GB18030 format!

 

Change the default encoding of New Eclipse or MyEclipse files

 

Eclipse:

The right window of window-preferences-General-ContentType can be changed to gbk or UTF-8.

 

MyEclipse:

Window-preferences-myEclipse-files and editors-jsp inside encoding, change here to iso000046/UTF-8.

 

Eclipse and java file encoding settings

 

If you search for file encoding problems on the Internet, you can get a lot of answers, or even some are known as the ultimate solution, so you may not encounter Encoding Problems. Why should I write this article? Because I work under two platforms, the default encoding is different, so you need to skip it.

 

Let's take a look at the eclipse settings. If you download eclipse and do nothing, you can start to create a project and code. Everything is okay, however, you may have moved your project to linux for development, because you are getting tired of winxp and fall in love with ubuntu. This is the case. Open eclipse under winxp, click Window --> Preferences, and expand General --> WorkSpace. The Text file encoding on the left is not displayed. The default setting is simplified Chinese encoding (gbk, gb2312), and linux below, is the UTF-8.

 

Now everyone has understood their differences, what are you waiting for, and now start to set all your WorkSpace file encoding to UTF-8, you will have a java file that can be normally displayed at any time without garbled characters.

 

 

 

7. Other Optimizations

 

1. window-preferences-MyEclipse Enterprise Workbench-Maven4MyEclipse-Maven, change Maven JDK to JDK installed on the computer, that is, do not use myeclipse to improve JDK

Register the add button and select JDK on your computer (Note: It is not JRE, and my value is Java6.014)

 

2. window-preferences-MyEclipse Enterprise Workbench-Matisse4Myeclipse/Swing, switch Design-time information (dt. jar) location to the computer-installed JDK's dt. jar

(That is, do not use the dt. jar provided by myeclipse. My value is: C: \ Java6.014 \ lib \ dt. jar)

 

After the above optimization, the startup time of myeclipse can be reduced by 2/3, And the startup speed of Tomcat can be reduced by 1/2 (depending on the situation)

 

 

 

 

 

 

 

 

 

Differences between include commands and include actions in JSP

1. execution time:

<% @ Include file = "relativeURI" %> is executed in the translation phase

<Jsp: include page = "relativeURI" flush = "true"/> it is executed in the request processing stage.

2. Differences in introduced content:

<% @ Include file = "relativeURI" %>

Introduce static text (html, jsp) and combine it before the JSP page is converted into a servlet.

<Jsp: include page = "relativeURI" flush = "true"/> introduce the response text generated by the execution page or servlet.

In addition, both the file and page attributes are interpreted as a relative URI. if it starts with a slash, it is an environment-related path. it will be interpreted based on the prefix of the URI assigned to the application. If it is not starting with a slash, It is the page-related path. It will be interpreted based on the path of the page that introduced this file.

The JDK version of build path is used by the compiler during development. For example, if JDK is used, generic type cannot be used. Java compiler compliance level sets the JDK version level for the compiled JAVA code. For example, if 1.4 is set, the compiled class file can be run on JRE of 1.4 or above. If the compiled class file is of the 5.0 level, it cannot run in the 1.4 environment and a prompt is displayed that the version is too high.
As long as the JDK version of build path is higher than or equal to the level in java compiler compliance level

 

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.