A summary of why Eclipse is running the previous program

Source: Internet
Author: User

Run eclipse sometimes does not run the class that you just wrote, it always runs another previous class, deletes the previous class and doesn't run anything. After looking for a long time, I finally found that the class I just wrote had no main () or error. This is related to the Java characteristics, the program is always running the main () method as a start, so now that the class does not define main (), it can be regarded as a functional class, the entrance in the original class, of course, from the original program to start running. The improvement is to look for the next write class main () there is no error, or the entire program is not mistaken. It's OK to run after the mend.
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.