Beginner Eclipse, people who have never been exposed to Eclipse may take a look at [ZT] "first-download"
First go
Www.eclipse.org Download Eclipse
In Downloads -> Main Eclipse Download Site -> 3.0 Latest Releases
Download version according to your own system
SECOND-installation
After downloading, unpack the file directly to the C: / or other directory, will automatically generate the eclipse directory
"Third- open"
In the Eclipse.exe point, the Workspace directory will be generated, and the future item file will be preset here.
Alternatively, the Eclipse.exe execution file and the Workspace directory can also be transferred to the desktop as a shortcut, which is convenient for jobs.
"Four-start editing"
1. Select New from File -> Project
2. Select Java Project Press Next to enter Project Name (like Hello)
3. Project Layout has two options that the difference is that the first place will place the original code and the compiled program code in the project, and the other is open in the SRC and BIN data clips.
4. Next, you can use the preset direct click Finish.
5. After completing, from New -> Class
Enter Class Name, and choose the following options yourself, Eclipse will automatically help you generate a Class file.
Like a drop ~
Code: [Copy to CLIPBOARD]
/ ** CREATEDOTED 2004/3/22 ** To change the Template for this generated file go to * window - preferences - java - code generation - code and comments * // *** @Author administrator ** To change the template For this generated type comment go to * window - preferences - java - code generation - code and commerss * / public class hello {public static void main (string [] args) {}}}}}}
6. Now you can start the write process.
Eclipse has a great feature is to complete the function in accordance with ALT /
Or play SYSTEM, and then stop, there will be super convenience !!
In addition, if you play sysout and press Alt /, you will automatically run hth.out.println (); 喔 ~
7. After the program is written, press the right button on the program, select Run -> Java Application, or select the file to be executed in the RUN menu.
If you press CTRL F11, you can re-execute the program that has just running.
8. Also introduce a better function, that is, the error
First set up the place where you want to stop the deactivation
It is a blue spot indicating the interrupt point in the dark gray area of the editor.
Select Run's first debug as when executed and then execute
Eclipse is executed when it is executed, and the error screen is displayed.
Then you can press Step Into step by step by step by step by step by step.
It is also possible to see variable value changes by Variables in the upper right.
You can also select a variable in the Expression View to press Right click, select Watch
This variation and its value will appear here.
9. Users can be changed in Window -> Preferences