Organize network resources and practice the results.
- Make sure Project->build automatically has been selected.
- If selected, also does not work, use this trick: Project->clean. Select 2nd Clean Select Project, tick the start build immediately
- Delete the current project, set the output path of the compiled file in advance, re-import the source file, set Eclipse to compile on save, and then compile it automatically when you save it.
- If the project led to an unused jar, and that package is 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 one by one to introduce (need), do not bring all the package all at once, the useless may cause undesirable consequences.
- 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.
- In other cases, remove the JRE System Library and re-import to compile. But what causes it is unclear.
- Remove all packages from the build path. Then add Jars,add libraries put the need to add in, incredibly began to compile
- Project->properties->java Build PATH->SOURCE->.../WEB-INF/SRC output folder do not default, edit let it point to: /web-inf/classes then re-click Build project to automatically compile
- Then the most important thing to see is 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
- . classpath file to see if there are <classpathentrykind= "src" path= "src"/>
- Delete the Classes folder under Web-inf
- Remove build automatically, then select Build all, then manually tick
MyEclipse unable to automatically compile the workaround