从myeclipse导入eclipse,不能识别为web项目(java项目转为web项目)
来源:互联网 发布:泰国佛牌 知乎 编辑:程序博客网 时间:2024/05/23 19:13
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这些玩意。记得加上。
[html]
< ?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"?>
< 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文件,这个里面记得改你的输出路径。
[html]
< ?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>
<?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项目解决办法)
- C++编码规范(1):代码注释
- HDU--杭电--3746--Cyclic Nacklace--KMP--next值的应用
- 写在开头,Oracle的安装
- C++编码规范(2):命名规范
- GC策略的调优
- 从myeclipse导入eclipse,不能识别为web项目(java项目转为web项目)
- 百练---大数加,减,乘,除----2736,2737,2980,2981
- 排序算法整理(4)冒泡排序
- 循环统计每个目录下文件的数量
- 形容词后面跟that从句
- Linux上使用AMD的OpenCL开发运行环境
- [小说]魔王冢(17)鬼金羊
- 用户权限系统的URL整合方法剖析
- strcasecmp 函数 与 strncasecmp函数的介绍