MyEclipse does not compile

Source: Internet
Author: User

Today MyEclipse suddenly do not compile Java files, tried the online said clean, re-add jar package and so on are not good use. Clean should have erased the contents of the Classes folder, but the Classes folder was not found at all. A project was re-built, prompting for errors such as those shown when adding classes. Later in the original project test, also made the same mistake. (Creation of element failed. Org.eclipse.core.internal.registry.configurationElementHandle cannot is cast to Org.eclipse.jdt.core.compiler.CompilationParticipant)

WORKAROUND: MyEclipse The update folder under configuration in the installation directory to delete and restart MyEclipse.

Find out how to solve the problem on the Internet:

MyEclipse does not compile resolution 1. Make sure the project->build automatically has been selected.

MyEclipse does not compile resolution 2. If selected, also does not work, use this trick: Project->clean. Select 2nd Clean Select Project, tick the start build immediatelly

MyEclipse do not compile the solution 3. Delete the current project, set up the output path of the compiled file in advance, re-import the source file, set the MyEclipse to compile on save, and then compile it automatically when you save it.

MyEclipse does not compile the solution 4. If the project led to an unused jar package, and the package was deleted by you, it will appear without error, but how to compile the case of the class file, you can delete all the packages, and then a one of the re-introduction (required), do not bring all the packages all at once, Useless may lead to undesirable consequences.

MyEclipse does not compile resolution 5. Want to delete a class file to regenerate, remove the class file, but the folder under the Classes directory is opened by other programs, such as Total Commander. At this point the compilation will not pass, under problems may prompt "Con ' t delete classes ...". Turn off other programs to recompile.

MyEclipse does not compile the solution 6. There is also a situation where the JRE System Library is removed and re-imported to compile. But what causes it is unclear.

MyEclipse does not compile the solution 7. Remove all packages from the build path. Then add Jars,add libraries the need to add in, incredibly began to compile ...

MyEclipse do not compile the output folder to resolve 8.project->properties->java build path->source->.../web-inf/src do not default, Edit to point it to: /web-inf/classes

Then click the Build project again to compile automatically. My problem is here, I deleted this compilation directory by mistake.

MyEclipse does not compile the solution 9. Then the most important thing is to see whether the work directory is missing, because the CVS control does not add work as a version, so checkout after the directory, to manually add some projects can be automatically compiled

At the very beginning, I only found the first 7 methods, but none of them solved my problem. Inadvertently I opened the "problems" label, found that there is a lack of work directory, manually add, and then refresh the project is OK.

The last two are what I found when I wrote this summary. In particular, the Nineth article is useful for projects that use CVS for version control.

. classpath this XML file to look closely

MyEclipse does not compile

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.