码迷,mamicode.com
首页 > 系统相关 > 详细

MyEclipse不编译

时间:2014-11-12 11:49:50      阅读:189      评论:0      收藏:0      [点我收藏+]

标签:des   io   ar   使用   java   sp   文件   on   代码   

有时发现刚从svn导下来的代码在Myeclipse中使用Tomcat部署时,不编译,也即指定的输出classes的文件里面没有东西。

看了很多方法都试过,不论是开启自动编译,清理项目,移除再添加jre。都不行。

最后再一个正常的项目中拷贝了.projects的内容,就可以了。

下面是那个正常的配置。以备后需吧。

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>Test</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
		<buildCommand>
			<name>com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>org.eclipse.jdt.core.javabuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>org.eclipse.wst.validation.validationbuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
	</buildSpec>
	<natures>
		<nature>com.genuitec.eclipse.ast.deploy.core.deploymentnature</nature>
		<nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
		<nature>org.eclipse.jdt.core.javanature</nature>
		<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
	</natures>
</projectDescription>



MyEclipse不编译

标签:des   io   ar   使用   java   sp   文件   on   代码   

原文地址:http://blog.csdn.net/baidu_18607183/article/details/41040773

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!