Article From:

EclipseThe official website address:
We download the J2EE version: Eclipse IDE for Java EE Developers.
The latest version of the current version is: Eclipse Kepler (4.3)
1、Eclipse IDE for Java EE DevelopersDownload address:

This version is an uncompressed version, for example, the path of our uncompressed eclipse is: F:/eclipse-jee-helios-SR2-win32/eclipse (hereinafter referred to as%ECLIPSE_HOME%).
If we configure the JDK environment variable, after entering%ECLIPSE_HOME%, double click “eclipse.exe” to start Eclipse, and when you start, you will be prompted to select a workspace. It
It is suggested that you create more workspace to create different project in different workspace according to the actual needs, so as to avoid more and more project in the later workspace, affecting the start speed of Eclipse (Of course, the project proposal that is not used in the near future will close it – right click the name of the project “Close Project”, and if you need to open the project, right click the closed project name “Open Project”.). It
Switching workspace can be done in startup or after startup, in the “File” – “Switch Workapsce” switch. It
The management of Eclipse for workspace can also be referred to as “”.

After starting the Eclipse for the first time, we need to do some basic configuration. Usually we need to do the following configuration:
1)Configuring JDK by default, Eclipse automatically associuses the JDK configured in the environment variable, and if we install multiple versions of JDK, we can also manually configure it as follows: “Window” – “Preferences” – “Java” – “I”Nstalled JREs “-” Add “-” Standard VM “- select JDK installation directory. It
2)Configure Tomcat “Window” – “Preferences” – “Server” – “Runtime Environments” – “Add” – “Apache” – “Apache Tomcat v7.0” -Select the directory in tomcat7, select JDK in JRE, and configure JDK in it. It
The configuration is completed and can be verified in the “Servers” view. The default “Servers” view is open at the bottom of the Java EE preset view, and if not, “Window” – “Show View” – “Server”- select Servers to open the “Servers” view. It
In the “Servers” view, right click – “New” – “Server” – select “Tomcat v7.0 Server”, if you see “Apache T” in “Server runtime environment”Omcat v7.0 “indicates that the configuration is successful. It
3)Starting speed Eclipse starts with the default load of some plug-ins, and loading these plug-ins will increase the startup time of eclipse. In fact, some East is not useful for us, so it can be closed, and the way is “Window” – “Preference”S “-” General “-” Startup and Shutdown “- remove the plug-in that you do not want. It
4)The default Eclipse will verify the items in workspace, including the content of JSP, the content of XML, and so on, and the validation process is very memory consuming, so it is recommended to close the validation function. The closing method is as follows: “Window” – “PrefeRences “-” Validation “-” Disable All “. It
5)Setting up the new contents of the “new” menu item Eclipse does not meet the requirements, and many of the contents need to be found in the other, but we can customize the contents of the new menu item as follows: right click the toolbar – “Customize Prespect”Ive… ” – “Shortcuts” – select the new item you need. It
6)The default file editor Eclipse will automatically select the editor of the file by default, or select the editor in the file “Open With” right click on the file when you open the file, but sometimes we might want to let the file use a particular editor, at this point, by the lower method.Set: “Window” – “Preferences” – “General” – “Editors” – “File Associations”, the top selection of a specific file name suffix type, the following selection editor, can be added through the AddSet the default editor through Default. It
7)The definition of annotation style believes that we all know the importance of annotation. In the team, the unified annotation style is more important. The annotation style is set as follows: “Window” – “Preferences” – “Java” – “Code Style” – “Code Te”.Mplates “– set up according to your needs, such as Comments.
Types: The code is as follows

* Title: project_name   
* Description: XXXX    
* Copyright: Copyright (c) 2011  
* Makedate:${date} ${time}  
* @author ${user}    
* @version %I%, %G%   
* @since 1.0   

8)EclipseModify the encoding format, Window – &gt on the menu navigation bar; open the “preferred” dialog box on Preferences, the left navigation tree, and navigate to General – > Workspace. Windows 7 platform is GBK, simpleThe default coding of Chinese operating system Windows XP, Windows 2000 simplified Chinese is GB18030, and the Linux platform acquiescence is UTF-8.
Then the engineering code built in this workspace is GBK, and the java file built in the project is also GBK. It
You can see that the default is the GBK encoding format. We modified it to UTF-8 encoding format or the format you need.
Click on Apply, and click OK.
9)Modify the code of the file. Right click on the Eclipse project file, select Properties, select Resource to modify the encoding format.
10)Sometimes we need some kind of file, such as:.jsp、.javaEtc.
Navigation bar window – > preferences
Open the preferences dialog box, the left navigation tree, navigate to Genera – > Content Types
The type of the file to be modified is found on the right side. Let me take *.java as an example.
In the following Default encoding, enter UTF-8-> Update-> OK
11)eclipseThe encoding format of the newly built JSP file. Windows preferences “Web” JSP files changes the value of the right encoding to ISO 10646/Unicode (UTF-8), and then applies it. OK, then new jThe content of the SP file is encoded by the UTF-8.

Leave a Reply

Your email address will not be published. Required fields are marked *