Java programming tool-Installation and Use of eclipse

Source: Internet
Author: User

At the initial stage of Java learning, it is very advantageous for beginners to write programs using TXT text.

In this process, we will encounter many errors, so as to accumulate a lot of experience, such as spelling, uppercase and lowercase letters, formats, and so on. We also have better practices for using DOS, in general, we do not have access to dos.

After learning some experience, we can stand on the shoulders of giants and use other programming tools. Improve our efficiency.

The following uses one of the tools eclipse as an example to describe the installation process and usage in detail.

1. Run the eclipse.exe file.

 

In workspace, we do not select a program to be a remote user, but the installation path is similar to the installation path when installing the Java program. The difference is that eclipse does not need to be installed. After running the program, you only need to select a running location, that is, workspace. If the following default address is selected, this interface will not appear the next time you open the program. You can directly go to the next interface. As shown in:

This is the first time we enter the welcome interface of the software.

It is very simple and convenient. We can set the eclipse software on our computer.

2. Create a project and run it. Import and run other programs.

1. Create a project.

You can right-click and select project, or select new --- project in file To Go To The displayed interface.

 

Select Java project to enter

 

Enter the name helloword.

 

 

Right-click New -- class. The name is also set to helloword.

 

Click Finish. The following page is displayed.

 

The running result is displayed. This project is complete.

 

2. Import the program and compile and run it.

File ---> Import (File --- import)

Enter the following dialog box.

 

Here we usually choose the second item in general, which may be used in the future learning process (multiple developers use one central version ).

Next, click Next. Enter the import program interface.

Click browser, select the program to be compiled and run, and click finishing.

The following uses the imported Tetris game as an example. The imported interface is as follows:

In package explorer, you can click the program to view or modify the imported program. In the following prompt box, an error message is displayed for the newly imported program, as shown in. If there is no error in our program, it will not prompt.

In this way, the import is complete, and the next step is to run it.

 

3. Save and export

In step 2 and step 1, we have successfully written the helloword program, And the helloword program is also well imported in step 2 and Step 2. How can we export the program we have written,

File --- Export

 

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.