Eclipse found no class file for the Tomcat deployment site.

Source: Internet
Author: User

In fact, most of the solutions are available on the Internet, for example:

53262807

Solutions to problems such as failure to automatically compile or compile under eclipse

1. Make sure the project->build automatically has been selected.

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

3, delete the current project, set up the compilation file output path in advance, re-import the source file, set Eclipse to compile on save, and then can be automatically compiled when saved

4, if the project led to an unused jar package, and that package was deleted by you, will appear not error but how also compiled not the case of class file, you can delete all the packages, and then a one of the re-introduction (need), do not bring all the packages all at once, useless may cause undesirable consequences.

5, want to delete a class file regeneration, after deleting 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.

6, there is a situation is remove the JRE System Library, re-import can be compiled. But what causes it is unclear.

7. Remove all 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 compile automatically.

My project uses the above methods are invalid, and finally re-establish the project, when the project was set up to specify the compilation path to./web-inf/classes, copy the file in, the equivalent of re-copy the project, only when the project is set up to specify the compilation path (rather than build after the compilation path) can be

But my use of the above approach did not solve my problem, later found in the project right-click->properties->java Build path->libraries has a jar package reference not found (Miss State). The jar package was not found, but because the resources of the class library were not used in the project, the materializing could be compiled, but the final deployment would fail (no class was generated).

Once the useless jar reference is removed, Eclipse deploys the project to Tomcat with a class.

Problem solving.

Eclipse found no class file for the Tomcat deployment site.

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.