Fooled by eclipse-about the Org/eclipse/core/runtime package problem

Source: Internet
Author: User

If you see this article, you are expected to have encountered such a trap. When you appear to be the right code (should be the first encounter with similar code, these most rapeseed textbooks or networks) after a Thunderbolt roaster keyboard, with full of excitement running, but was ejected can ' t find the main class and so on similar dialog box, Look at the output information on the Eclipse console showing one or two lines of red characters java.lang.noclassdeffounderror:org/eclipse/core/runtime/iprogressmonitor
Exception in Thread "main" (or similar). So I'm going to start by saying, read on, your problem can basically be solved here.

Your Excellency may be surprised to have org/eclipse/core/runtime this bag into the library, why do you still report such a mistake, careful notice may find that there is no console in the package you are joining the class, the cow will be strange, What the hell is Eclispe doing?

In fact, it's very simple org/eclipse/core/runtime this package is not encapsulated in a jar package, they belong to two items (I think I can explain it). Just as you can see two engineering a1,a2, their package paths are the same, for example: com.binary.*; At this point, maybe someone else is telling you how to code, just tell you to import A1 this project, and A2 This project is not mentioned at all, and the fact is that you not only need to A1 this project, and need to A2 the project, well, I think we all understand that the specific eclipse why this point, I don't have a similar explanation on the Internet, so I hope eclipse can give a description.

Haha, OK, I think everybody grade, in fact these missing class in Org.eclipse.equinox.common inside, OK, everybody go to try it, hurry up action.

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.