1. First Java program run you need to download and install the JDK, which is the necessary environment for Java to run.
2. Locate eclipes on the desktop and double-click to open it.
3. During the Eclipes launch, a window will pop up, allowing you to fill in the Java Workspace Save directory, in this directory will save all the source code files you write, it is recommended not to put the work area on the C drive
4.ecplies after the completion of the launch, there will be a welcome page, this no tube, directly click on the top left of the difference, cancel off on it, and then into the main interface eclipes.
5. New item: Click on the file = "new =" java-project in the upper left corner, pop up a small window, fill in the project name click to confirm.
6. Create the package: Click on the item, open it to find SRC, right click on the new = "package, write the bag name, click OK."
7. Create a Java file: Right-click the package, create a Java file under the software package, right clicking on new = "Class
8. Write: Write the source code in the source editor. and save.
9, run: Right-click the Java file in the file browser, and then hit run as, the following command Line window in the opportunity to appear in the results.
Writing and running Java programs using Eclipse (base)