Failed to compile automatically under Eclipse, or no files in the Web-inf/classes directory, compilation failure solution

Source: Internet
Author: User
1. Ensure that the project->build automatically has been selected.

2. If selected, also does not work, use this recruit: Project->clean. -> Select 2nd Clean Select project, hook up start build immediatelly

3. Delete the current project, set up the compile file output path in advance, re-import the source file, set Eclipse to compile when saving, and then compile it automatically when you save it.

4. If the project leads to some unused jar bag, and the bag is deleted by you, there will be no error, but how can not compile the class file situation, you can remove all the packages, and then one after the introduction (need), not all of a sudden put all the bags are introduced, useless may cause undesirable consequences.


5. Want to delete a class file regeneration, remove the class file, but the Classes directory folder 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 and recompile.

6. There is also the case that the JRE System Library is removed and can be compiled by re-import. But what causes it is not clear.

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

8.project->properties->java Build PATH->SOURCE->.../WEB-INF/SRC output folder do not default, edit let it point to ... /web-inf/classes
Then click the Build project again to automatically compile.

Individuals use this to solve the problem

9. Then the most important to see whether the project below the work directory, because the CVS control does not add work version, so checkout after this directory, to hand-add some of the project can be automatically compiled

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.