从myeclipse导入eclipse,不能识别为web项目(java项目转为web项目) 转
来源:互联网 发布:网络数字用语骂人 编辑:程序博客网 时间:2024/05/22 01:45
原帖地址:http://blog.csdn.net/yaerfeng/article/details/8751209 点击打开链接
1、进入项目目录,找到.project文件,打开。
2、找到<natures>...</natures>代码段。
3、在第2步的代码段中加入如下标签内容并保存:
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
4、删除.setting下的文件,从其它EclipseJee web项目[记住为了保险起见,一定要用eclipse新建一个]的.setting文件下拷贝以下文件[其实就是把整个文件夹都拷过来]
.jsdtscope
org.eclipse.jst.common.project.facet.core.prefs
org.eclipse.wst.common.component
org.eclipse.wst.common.project.facet.core.xml
org.eclipse.wst.jsdt.ui.superType.container
org.eclipse.wst.jsdt.ui.superType.name
修改org.eclipse.wst.common.component中项目名称相关的内容
比如下面的jngl_mysql换成你的项目名称。
然后wb-resource就是你的资源文件,默认是src一个。如果你是用maven可能是src/java/main,src/java/resource这些玩意。记得加上。
- <?xml version="1.0" encoding="UTF-8"?>
- <project-modules id="moduleCoreId" project-version="1.5.0">
- <wb-module deploy-name="jngl_mysql">
- <wb-resource deploy-path="/" source-path="/WebRoot" tag="defaultRootSource"/>
- <wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
- <property name="context-root" value="jngl_mysql"/>
- <property name="java-output-path" value="/jngl_mysql/WEB-INF/classes"/>
- </wb-module>
- </project-modules>
- <?xml version="1.0" encoding="UTF-8"?>
- <classpath>
- <classpathentry kind="src" path="WebRoot"/>
- <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
- <attributes>
- <attribute name="hide" value="true"/>
- </attributes>
- </classpathentry>
- <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
- <classpathentry kind="output" path=""/>
- </classpath>
5、在eclipse的项目上点右键,刷新项目。
6、在项目上点右键,进入属性(properties)
7、在左侧列表项目中点击选择“Project Facets”,在右侧看看不是选择了“Dynamic Web Module”和"Java",如果有则成功了,如果没有就选上。
0 0
- 从myeclipse导入eclipse,不能识别为web项目(java项目转为web项目) 转
- 从myeclipse导入eclipse,不能识别为web项目(java项目转为web项目)
- 从myeclipse导入eclipse导致不能识别为web项目(java项目转为web项目)
- 从myeclipse导入eclipse,不能识别为web项目(java项目转为web项目)
- 从myeclipse导入eclipse,不能识别为web项目(java项目转为web项目)
- 从myeclipse导入eclipse导致不能识别为web项目(java项目转为web项目)
- 从myeclipse导入eclipse导致不能识别为web项目(java项目转为web项目)
- eclipse导入项目不能识别为web项目(java项目转为web项目)
- 从myeclipse导入eclipse导致不能识别为web项目
- 解决从myeclipse导入eclipse导致不能识别为web项目
- MyEclipse导入Eclipse中的Web项目,不能识别为Web项目
- 项目从Myeclipse 导入到eclipse中无法识别为 web项目 的问题
- 项目从Myeclipse 导入到eclipse中无法识别为 web项目 的问题
- myeclipse导入的web项目不能识别
- eclipse导入myeclipse的web项目在eclipse中不能识别成web项目
- myeclipse 项目导入至eclipse中不能识别为web项目,没有run on server菜单,也不能部署。
- 转:eclipse导入myeclipse的web项目没法识别问题解决
- 关于Eclipse导入的MyEclipse项目,不识别web项目
- 访问者模式 双重分派分析 与 accept方法存在的必要性
- 表:链表环问题总结
- 小蚂蚁你这是在干什么呀
- 494 - Kindergarten Counting Game
- rapidjson 学习笔记
- 从myeclipse导入eclipse,不能识别为web项目(java项目转为web项目) 转
- Powercenter 基础知识介绍- 4
- Android进程与线程详解
- Oracle中having1子句的用法
- 将多个js函数绑定到onload事件上
- 线程启动start后,如何停止的?
- iOS学习之二十:应用的归档打包以及distribution测试和上传到App Store
- JS 控制check复选框全选/反选
- 下班了晚上请同学吃饭