tools-eclipse-003-Download and install

Source: Internet
Author: User
Tags visibility

First, download 1.1, JDK installation

Download: http://www.oracle.com/technetwork/java/javase/downloads/index.html

Install: No JRE required, default

Configure environment variables: Computer → properties → advanced system settings → advanced → environment variables

System variables → new Java_home variable: variable value fill in the JDK installation directory

  Path variable → plus ; After the symbol, add %java_home%\bin;%java_home%\jre\bin at the end

No more setting classpath after 1.5

Detection: Java-version

1.2. Eclipse Installation

: https://www.eclipse.org/downloads/eclipse-packages/

Download the appropriate zip version

Second, optimize 2.1, adjust Preferences "Window-preferences"

Set Font size: window-preferences->general->appearance->colors and Fonts->basic->text font

Set JSP encoding format: window->preferences->web->jsp files->encoding->utf-8

Set other text encoding format: Window->preferences->general->workspace->text file Encoding->other->utf-8

Set additional text encoding format: window->preferences->general->content types->default encoding->utf-8, I will text and word Document Set to UTF-8

Turn off Eclipse automatic text verification: window->preferences->validation, leave Manual (Manual) section, build under "Classpath dependencyvalidator"

Optimize startup items, turn off some features: Window->preferences->general->startup Andy Shutdown, see the individual needs, if not used can be all unchecked

Turn off spell check settings: Windows→general→editors→text editors→spelling, spell check is off

Turn off animations: general > Appearance > Uncheck "Enable animations"

Close only prompts: Java > Editor > Content Assist > Disable Enable Auto Activation

2.2. Reduce the eclipse card issue caused by JVM memory recovery

This is mainly the JVM in the client mode, when the memory is collected, will stop all the other work, with the recovery to perform other tasks, during which eclipse is stuck. Therefore, the proper increase in the amount of memory requested by the JVM to reduce the number of times it is recycled or even not recycled, there will be a noticeable improvement in the card phenomenon.

The heap memory is set primarily by the following JVM parameters:

-xmx512m Maximum total heap memory, typically set to 1/4 of physical memory
-xms512m The initial total heap memory, which generally sets it as large as the maximum heap memory, so that the heap size does not need to be adjusted based on the current heap usage
-xmn192m Young with heap of memory, Sun is officially recommended for the entire heap of 3/8
Composition of heap memory Total heap memory = Young with heap memory + aged with heap memory + persistent heap memory
Young with heap of memory When the object was just created, put it here.
Old age with heap of memory Objects are placed here before they are actually recycled.
Persistent with heap memory class file, meta-data, etc.
-xx:permsize=128m Initial size of the persistent heap
-xx:maxpermsize=128m Maximum size of the persistent heap, eclipse defaults to 256m. If you want to compile this kind of JDK, make sure to set this up very large, because it has too many classes.

Modify the INI file for the same directory as eclipse. There are other relevant parameters to look at the following reference material, very inspiring:
-XX:+USEPARALLELGC using concurrent Memory reclamation
-XX:+DISABLEEXPLICITGC Disabling display memory recycling for System.GC ()

2.2. Turn off Auto Build

When enabled, eclipse will automatically build the entire project for us every time you save it, so that for large projects, it will cause a lot of cards for each save. In fact, auto-build is completely unnecessary, as long as it is OK to build once before running, Eclipse will be built for us automatically before running, so shutting down is the smartest choice.

Project→build automatically

2.3, Customize perspactive

Eclipse javeee mode,

Window->perspactive->customize perspactive->tool Bar Visibility, select File, Launch, Debug

Shortcuts

Window->perspactive->customize perspactive->shortcuts, tick the general content as follows: General→file, Folder

Check the Java content as follows: All

Tick JavaScript content as follows: JS Source File

Tick the Web content as follows: CSS file, Dynamic Web Project, Html file, JSP file

      Tick the XML as follows: XML File

After setting up, you can see the effect of new

Save Custom style Window->perspactive->save perspactive as

Switch to debug mode, Window->perspactive->customize perspactive->tool Bar Visibility

Keep Debug, Terminal only

   Save Custom style Window->perspactive->save perspactive as

tools-eclipse-003-Download and install

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.