eclipse helios使用myeclipse项目

本内容由网络资料组合+自己大量测试组成

环境tomcat6.0.35、jdk1.6、eclipse3.6 helios、xp   

1.使用eclipse helios   

2.然后修改eclipse工程下的.project文件:   
<buildSpec></buildSpec>   
中加入:   
<buildCommand>   
    <name>org.eclipse.wst.common.project.facet.core.builder</name>   
    <arguments></arguments>   
</buildCommand>   
<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>   

3: .settings——.jsdtscope文件内容改为   
<?xml version="1.0" encoding="UTF-8" ?>
<classpath>
    <classpathentry kind="src" path="" />
    <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>

4.
刷新项目   
项目——右击——Properties——builders——去掉javascript validator选项——确定(找不到则不用)   

5.项目——右击——Properties——Project   
Facets jdk1.6 + apache-tomcat-6.0.35的情况下   
选择 dynamic web module 2.5   
      java  1.6   
确定(不能确定转换的跳到第6步)   

6:.settings——org.eclipse.wst.common.project.facet.core.xml内容改为   
<?xml version="1.0" encoding="UTF-8" ?>
<faceted-project>
    <fixed facet="wst.jsdt.web" />
    <installed facet="java" version="1.6" />
    <installed facet="jst.web" version="2.5" />
    <installed facet="wst.jsdt.web" version="1.0" />
</faceted-project>

7:引入javaee.jar包(从myeclipse中寻找)       

8:.settings——org.eclipse.wst.common.component文件中的   
   WebContent需要改为WebRoot   

9:引入jar包到工作空间的lib中   

10:双击server修改 server locations——use customlocation制定到tomcat目录(启动tomcat后无法访问tomcat)   
	
11:deploy path改为webapps   

12:添加项目后将Servers项目中的server.xml 所有reloadable改为false(取消tomcat自动发布)

over
注意:顺序可能会不同  自己去测试
 

猜你喜欢

转载自antjava2010.iteye.com/blog/1456688