The initial stage of Java learning, the use of TXT text writing program, for our beginners is very advantageous.
In this process, we will encounter a lot of mistakes, so that accumulated a lot of experience, such as spelling, letter case, format, and so on, there are better practice of our DOS use, in general, we do not have access to DOS.
After we have a certain basis of experience, we can stand on the shoulders of giants, with the help of other programming tools. To improve our efficiency.
Here's one of the tools, eclipse, for example, detailing the installation process and how to use it.
One, run the Eclipse.exe file.
Workspace is not the choice of the program we want to travel, but with the installation of Java program to choose the installation path is similar, the difference is, Eclipse does not need to install, after running the program, we only need to select a run location that is workspace. If we check the following default address, the next time you open the program, it will not appear this interface, directly into the next interface. The following illustration:
This is our first entry into the software welcome interface.
Simple and convenient, we set the Eclipse software on our computer.
Second, the new project run-----import run other programs.
1, new project.
We can simply click the right mouse button-select project, or select New---project in file, and then go to the interface as shown.
Select Java Project to enter
Fill in the name Helloword.
Right-click, New--class. The name is also set to Helloword
Clicking Finish will show the following interface
The results of the operation came out. The project will be completed.
2, import program, compile run.
File--->import (Files---import)
Enter the following dialog box.
Here we usually select the second item in general, and CVS may be used in future learning processes (multiple developers through a central version).
Then click Next. Enter the import program interface.
Click Browser, select the program we want to compile and run, and then click Finishing to complete it.
The following is an example of a game imported into Tetris:
In Package Explorer more recently imported programs, you can click on the program to view or modify and so on. There is also a question box below, and the program we just imported appears in the error message, as shown in the previous image. If there is no error in our program, he will not be prompted.
So the import is done, and the next step is to run.
Three, save and export
In two, 1 we successfully wrote the Helloword program, two, 2 also very good import, how to export our written procedures,
File---Export