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 <!--auto-compile-2 <buildCommand> 3 <name>org.eclipse.jdt.core.javabuilder</name> 4 <arguments> 5 </arguments> 6 </buildCommand> 7 8 <!--auto-Verify-9 <buildcommand>10 <name>org.eclipse.wst.validation.validationbuilder</name>11 <arguments>12 </ Arguments>13 </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