从myeclipse导入eclipse,不能识别为web项目(java项目转为web项目)
来源:互联网 发布:金星教育软件 编辑:程序博客网 时间:2024/05/18 17:23
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>
5、在eclipse的项目上点右键,刷新项目。
6、在项目上点右键,进入属性(properties)
7、在左侧列表项目中点击选择“Project Facets”,在右侧看看不是选择了“Dynamic Web Module”和"Java",如果有则成功了,如果没有就选上。
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>然后是.jsdtscope文件,这个里面记得改你的输出路径。
<?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",如果有则成功了,如果没有就选上。
- 从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项目显示为java项目解决办法)
- ubuntu 上安装jdk gz版
- 超级摄影师
- 5款开源的PHP网站流量统计应用程序
- sed 详细用法
- BubbleUPnP多屏互动
- 从myeclipse导入eclipse,不能识别为web项目(java项目转为web项目)
- exp导出表结构
- iOS手势UIGestureRecognizer
- cacti安装/配置
- vs 2010 上qt 安装
- hdu_2000_ASCII码排序_解题报告
- js相关链接
- 很经典的C++笔试题(附答案)
- css3 transition uncover (揭开效果)