关于在eclipse中导入myeclipse下的web project不能出现run on server
2013-08-03 22:00
351 查看
今天在学习时,试着把myeclipse中的web progect导入到eclipse中,发现运行不了,连那个run on server都出现不了,只会出现那个run Configurations,试了很多遍都不行,最后在网上找到了解决办法。
步骤是这样的:
1.可以用记事本打开的那个引入项目的.project,然后在里面添加一个配置如下:
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
把下面的<natures></natures>里 的内容替换为
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
2.点击项目刷新,点右键,选properties——>project facets,然后我是这样选的
3.找到本项目的.settings目录,将其中名为org.eclipse.wst.common.component的文件用记事本打开,然后可以看到其中一行是这样的 <wb-resource deploy-path="/" source-path="/WebContent"/>,把这行修改为
<wb-resource deploy-path="/" source-path="/WebRoot"/>
4.刷新,运行就能看见那个run on server 啦。
步骤是这样的:
1.可以用记事本打开的那个引入项目的.project,然后在里面添加一个配置如下:
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
把下面的<natures></natures>里 的内容替换为
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
2.点击项目刷新,点右键,选properties——>project facets,然后我是这样选的
3.找到本项目的.settings目录,将其中名为org.eclipse.wst.common.component的文件用记事本打开,然后可以看到其中一行是这样的 <wb-resource deploy-path="/" source-path="/WebContent"/>,把这行修改为
<wb-resource deploy-path="/" source-path="/WebRoot"/>
4.刷新,运行就能看见那个run on server 啦。
相关文章推荐
- 从myeclipse导入eclipse,不能识别为web项目(java项目转为web项目) 转
- 关于导入到myeclipse里的web项目不能添加tomcat服务的解决方法
- 关于Eclipse(MyEclipse)中一次性批量导入多个项目Project.
- Eclipse web工程导入到myeclipse中Tomcat不能直接部署之解决方法
- 解决从myeclipse导入eclipse导致不能识别为web项目
- myeclipse 与Eclipse web工程相互导入部署问题解决---Tomcat 不能识别工程总结
- 从myeclipse导入eclipse,不能识别为web项目(java项目转为web项目)
- 从myeclipse导入eclipse导致不能识别为web项目
- 关于myeclipse Web项目导入到eclipse
- 关于Eclipse(MyEclipse)中一次性批量导入多个项目Project.
- eclipse导入myeclipse的web项目在eclipse中不能识别成web项目
- 从myeclipse导入eclipse,不能识别为web项目(java项目转为web项目)
- Eclipse web项目导入到myeclipse中Tomcat不能直接部署解决方法
- 从myeclipse导入eclipse导致不能识别为web项目(java项目转为web项目)
- eclipse中装了MyEclipse插件之后不能创建web project
- myeclipse中的web项目导入到eclipse中出现的问题及解决办法
- 从myeclipse导入eclipse导致不能识别为web项目(java项目转为web项目)
- myeclipse 项目导入至eclipse中不能识别为web项目,没有run on server菜单,也不能部署。
- eclipse 中的Dynamic Web Project 项目导入到myeclipse中