Eclipse Beginner's Notes (1)

Source: Internet
Author: User
Beginner
ECLIPSE Usage Preliminary



































1 Integrated Lomboz and Tomcat



































There are many articles on the Internet, no longer, as long as the corresponding plug-ins downloaded after the decompression, copy to the corresponding directory eclipse. If the installation is correct, there will be a corresponding icon on the toolbar (pictured).











































2 Creating the Project



































File->new->project















































































Select Java project,next








Fill in the project name, select separate source files and output files. Next->finish.



































Right-click the SRC folder and create a new package named world



The engineering structure can be seen in the navigation bar (pictured)


















Fill in the project name, select separate source files and output files. Next->finish.



































Right-click the SRC folder and create a new package named world



The engineering structure can be seen in the navigation bar (pictured)









Right-click World, create a new class, name HelloWorld







Select Menu project, select Build automatically, and save to see the corresponding class file in the Bin folder.



































Add the following in the main method:



































int testvalue = 0;



































System.out.println ("Hello World");



































TestValue = TestValue + 2;



































System.out.println ("TestValue:" + testvalue);



































Menu Run->run ...















































































































































Double-click the Java application in the configuration. Click the Run button. You can see the output from the console as follows:









































































3. Breakpoint Test



































Double-click the left side of the first sentence, or right-click to select Toggle Breakpoint. Add a breakpoint. Then select Debug. You can step through F6, observe testvalue values, and see the output of the console.






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.