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