Eclipse cannot automatically compile Java files and does not generate class

Source: Internet
Author: User

Every time you modify the class code, you have to restart Tomcat after 1 days to finally solve, the net is basically the following 1 and 2 methods, after use or not finally re-built the work environment import project compared to find a third method

1, Project has a "Build automatically" on the hook will be automatically compiled.

2, if not compiled, look at the "problems" (in Windeow > Show View > Other, such as) tab below the information, is not a project error (such as: missing jar, compile path error, etc.), resulting in no way to compile, Follow the prompts to resolve the problem and you can compile it automatically.

3, if not compiled, may be a problem with eclipse settings, causing the project's plug-in to lose the. project file under open Project to see if the following Buildspec

1 <!--Automatic compilation -2 <Buildcommand>3     <name>Org.eclipse.jdt.core.javabuilder</name>4     <arguments>5     </arguments>6 </Buildcommand>7 8 <!--Automatic Validation -9 <Buildcommand>Ten     <name>Org.eclipse.wst.validation.validationbuilder</name> One     <arguments> A     </arguments> - </Buildcommand>

At present, these 3 kinds of situation after processing, have not encountered can not be automatically compiled , if not yet can only re-build workspace Import Project .

Eclipse cannot automatically compile Java files and does not generate class

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.