eclipse configuration process detailed

Eclipse is used to configure

First, the first use of the necessary settings

1. Eclipse installation

Eclipse will decompression or installation to the next path is not Chinese and no spaces.

2 . Set workspace

First start , select the designated work space (Workspace) , used to store the java code.

 

 

Note : the middle of the blue box , it is not recommended tick . If the tick , every time Eclipse will automatically enter the selected top workspace in . Is not conducive Eclipse open other workspace .

 

Click "OK", enter the main interface . First entered the show as follows:

 

Can remove welcome the hook bottom right corner of the page, each time you start to avoid the show.

 

3 . Setting a perspective view (Perspective)

Into the Eclipse After editing interface , first select the following red box , provided perspective :

 

 

Click on "red box", select JavaEE perspective

 

 

 

4 . Add a perspective view of the structure shown in need

Enter the name of the corresponding structure sequentially follows the text box , and obtain it.

 

Structure 1: Package Penalty for Explorer

 

 

Structure 2: Navigator

 

 

Structure 3: Outline

 

 

And unified interface, drag and drop the left :

 

 

Structure 4: Console

 

 

5 . Close other unwanted structures

 

as well as

 

as well as

 

Red box marked above structure , can be deleted. ( Because it is not commonly used )

6 . Setting codeset

 

 

 

 

7 . Set the font , font , font size

 

Double-click : Text Font

 

You can choose according to personal habits.

 

8 . Setting package explorer right : new structure of the display

 

Click to enter :

 

Removing New selected before , select a common structure to the sublist.

 

 

 

 

 

9 . Save the current perspective view of FIG.

 

 

 

 

A perspective view of the cover to the default.

 

 

Two , to complete the first HelloWorld program

1. Create Project

 

 

 

At this point the red line marked hook , and then select : No . We are here to represent the future use JavaEE open perspective java project.

 

2. Create a package

 

Select the src rear , right , new-Package

 

 

3. Create a class

 

 

 

Write code , and run :

 

 

Three , Frequently Asked Questions

1. Double-click the Eclipse startup icon, does not start Eclipse

Start reasons not very many, here we need from the following aspects investigation :

1. The environment variable is correctly configured , at the command line, type carried javac.exe or java.exe inspection

2. Is the correct installation of the JDK and JRE

3. Install the JDK version ( 32 bit or 64 bit ) , you must Eclipse versions consistent

4. Modify Eclipse installation directory eclipse.ini configuration file

2. enter Eclipse time , did not have an alternative workspace

The reason :

 

Since the check of the above-described red frame, then it is time to start Eclipse time, no longer displaying selectable Workspace .

 

Solution :

 

In the windows - under the Preferences , the above-mentioned red box to check.

3. How to import an existing project

 

Adhesive,

 

 

 

By clicking on the blue box to select to import Java project, and then check the above two red box, to confirm.

4. How to import existing source file

Direct copy ( Ctrl + C ) of this source file directly designated project the paste under clad ( Ctrl + V) to .

 

5 . How to delete a project

 

6 . Project code garbled how do

The reason :

Appear garbled code of the characters used coded set and character encoding used by the project settings set inconsistencies caused.

 

How to solve :

Proposed changes garbled file character encoding can be set.

7. Run the program, mistakenly select the Java perspective drawing, how to adjust for the JavaEE of

 

Is set to modify the figure set for the case can be solved.

8 . And then create a Workspace , before setting how gone

The reason :

We do Eclipse set, only the current use of workspace effective. Set data is stored in the corresponding workspace folder .metadata file folder. If you create a new Workspace , you will need to re-set.

9. How in Eclipse to view the Java class library source code?

In the code, the integrated use ctrl + mouse left click on the specified architecture , the interface can be retrieved as follows:

 

Click the button : the Attach Source

 

To import the source file if it exists, SELECT: External File

To import source If folder exists, SELECT: External Folder

Here jdk source to src.zip way exists, so choose: External File

 

Select confirm to .

10. How the code written in the display programmer related information

In turn select:

Window-->Preferences-->Java-->Code Style-->Code Templates

Click Comments   

( 1 ) Found Types and then double-click to fill in the following information

/**

 * @Description 

 * @author shkstart  Email:[email protected]

 * @version 

 * @date ${date}${time}

 *

 */

Box in red, they can fill in their own information.

 

( 2 ) find Methods and then double-click to fill in the following information

/**

 * @Description

 * @author shkstart

 * @date ${date}${time}

 * ${tags}

 */

Box in red, they can fill in their own information.

 

Guess you like

Origin www.cnblogs.com/zirui0219/p/11299229.html