zoukankan      html  css  js  c++  java
  • Eclipse导入到web项目没有run on server

    Eclipse导入到web项目没有run on server

    由于以前的项目都是用myeclipse开发的,现在要换成eclipse来开发。但是项目导入到eclipse中发现该项目并不是web项目,也不能部署到tomcat里面去。 现在解决了这个问题了。
          一.请首先确保你的机器上的eclipse是javaee版本的,或者已经安装看wtp插件 
          二.先Close Project,然后修改eclipse工程下的.project文件: 
             在 <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> 
       在 <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> 
    三.Open Project,然后刷新项目,在项目->右击->Properties->Project Facets->Modify Project,选择Java和Dynamic Web Module 
             配置Context Root 和Content Directory 以及源码路径。

  • 相关阅读:
    iOS UI控件7(UITableView)
    iOS UI控件6
    iOS UI控件5-UIPickerView
    iOS UI控件4
    iOS UI控件(3)
    iOS UI控件(2) UITextView
    iOS UI控件(1)
    C# 解决上位机串口接收数据丢失问题
    C# 串口操作系列(3) -- 协议篇,二进制协议数据解析
    如何将Debug文件夹下的资源打包成一个EXE文件直接执行
  • 原文地址:https://www.cnblogs.com/shenming/p/3528046.html
Copyright © 2011-2022 走看看