Problem solving about Eclipse not compiling project

Source: Internet
Author: User

"project" Menu

The Project menu can perform actions (build or compile) on items in the workbench.

name

function

Open Project (Project open)

displays a dialog box that lets you choose to open a closed item

Close Project (closing project)

closes the currently selected item

build All (built all)

this directive will perform incremental (incremental) compilation of all items in the workbench. That is, it compiles (compiles) all the resources that are affected by any resource changes in the workbench since the previous incremental compilation. This instruction is only available when automatic compilation is turned off.

build project (Compile project)

This instruction compiles an incremental (incremental) of the currently selected project. That is, it compiles (compiles) all the resources in the project that have been affected by any resource changes since the previous compilation. This instruction is only available when automatic compilation is turned off.

build workings Set (recompile working set)

This menu can perform incremental (incremental) compilation on the working set. That is, it compiles (compiles) all the resources in the work set that were affected by any resource changes after the previous compilation. This instruction is only available when automatic compilation is turned off.

Clean (Clear)

This instruction discards all previous compilation results. If automatic compilation is turned on, this will call the full compilation.

build automatically (automatic compilation)

Automatically compiles all items in the workspace. This instruction can toggle the automatic compilation preferences.

Eclipse has a problem with not compiling the project. How to refresh the classes directory is also empty.
The details are operational:
Open Project->build automatically after trial, or not compile.
Open the project--> build automatically another clean will probably compile, and the result is not.
Eclipse defaults to Automatic compilation. Even if you cancel the automatic compilation, the manual build works and cannot be compiled.

There are generally three reasons for this situation:
1. 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.
2. 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.

3. 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.

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.