在eclipse项目的源代码中进行更新后,Java源文件无法编译

时间:2022-01-20 11:33:22

I've tried a lot but fail to get latest compiled .class files for the source code after making some updation. The project is giving response same as in older source file. The updation on JSP files is getting reflect instantly but not in case of Java files.

我已经尝试了很多,但在进行一些更新后无法获得源代码的最新编译.class文件。该项目的响应与旧的源文件相同。 JSP文件的更新立即反映,但不是Java文件。

J2EE project
Eclipse Juno
jetty-6.1.x

J2EE项目Eclipse Juno jetty-6.1.x

Jul 15, 2013 1:04:57 PM com.google.apphosting.utils.config.AppEngineWebXmlReader      readAppEngineWebXml
INFO: Successfully processed C:\Users\Atul Dwivedi\git\careeryantra\war\WEB-INF/appengine-web.xml
Jul 15, 2013 1:04:58 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed C:\Users\Atul Dwivedi\git\careeryantra\war\WEB-INF/web.xml
Jul 15, 2013 1:04:58 PM com.google.appengine.tools.development.SystemPropertiesManager setSystemProperties
INFO: Overwriting system property key 'java.util.logging.config.file', valu'C:\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.8.1.1\appengine-java-sdk-  1.8.1.1\config\sdk\logging.properties' with value 'WEB-INF/logging.properties' from '    C:\Users\Atul Dwivedi\git\careeryantra\war\WEB-INF\appengine-web.xml'
Jul 15, 2013 1:04:58 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
Jul 15, 2013 7:34:59 AM com.google.apphosting.utils.jetty.JettyLogger info
INFO: jetty-6.1.x
Jul 15, 2013 7:35:01 AM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Started SelectChannelConnector@127.0.0.1:8888
Jul 15, 2013 7:35:01 AM com.google.appengine.tools.development.AbstractServer startup
INFO: Server default is running at http://localhost:8888/
Jul 15, 2013 7:35:01 AM com.google.appengine.tools.development.AbstractServer startup
INFO: The admin console is running at http://localhost:8888/_ah/admin
Jul 15, 2013 1:05:01 PM com.google.appengine.tools.development.DevAppServerImpl start
INFO: Dev App Server is now running

Everything is fine with older java file but after making changes, It seems that project is running on the basis of older .class file.

对于较旧的java文件,一切都很好,但在进行更改后,似乎项目是在较旧的.class文件的基础上运行的。

2 个解决方案

#1


0  

Check if you have checked "Build Automatically" checkbox in Project menu: 在eclipse项目的源代码中进行更新后,Java源文件无法编译

检查是否已选中“项目”菜单中的“自动构建”复选框:

#2


0  

Please go to project in the menu and select clean. Then select the project you wish clean to consider.

请转到菜单中的项目并选择清洁。然后选择您希望清洁的项目。

#1


0  

Check if you have checked "Build Automatically" checkbox in Project menu: 在eclipse项目的源代码中进行更新后,Java源文件无法编译

检查是否已选中“项目”菜单中的“自动构建”复选框:

#2


0  

Please go to project in the menu and select clean. Then select the project you wish clean to consider.

请转到菜单中的项目并选择清洁。然后选择您希望清洁的项目。