zoukankan      html  css  js  c++  java
  • eclipse或Myeclipse中web项目没有run on server时怎么办?

    文章转载至:http://blog.csdn.net/hongchangfirst/article/details/7722703

    web项目没有run on server

    1、首先确保正确安装Tomcat和JDK。(eclipse要确保eclipse是javaee版本的,或者已经安装看wtp插件 )

      Tomcat安装参考:http://jingyan.baidu.com/article/4853e1e53465271909f72690.html

    2、找到对于web项目的文件夹,打开文件夹下.project文件

    3、查看.project文件是否包含以下文件,如果没有添加进去,修改后保存文件。

       在 <natures> </natures>中加入 

    <natures>
            <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
            <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
            <nature>org.eclipse.jdt.core.javanature</nature>
            <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
            <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
        </natures>

      在 <buildSpec> </buildSpec>中加入 

    <buildSpec>
            <buildCommand>
                <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
                <arguments>
                </arguments>
            </buildCommand>
            <buildCommand>
                <name>org.eclipse.wst.common.project.facet.core.builder</name>
                <arguments>
                </arguments>
            </buildCommand>
            <buildCommand>
                <name>org.eclipse.jdt.core.javabuilder</name>
                <arguments>
                </arguments>
            </buildCommand>
            <buildCommand>
                <name>org.eclipse.wst.validation.validationbuilder</name>
                <arguments>
                </arguments>
            </buildCommand>
        </buildSpec>

    4、刷新web项目,在项目->右击->Properties->Project Facets->Modify Project,选择Java和Dynamic Web Module。点击ok关闭。

    5、此时再打开run as 应该就有Run on server了。

  • 相关阅读:
    Lua/AHK socket tcp telnet
    Lua wait sleep
    Lua io.open read write seek flush setvbuf append
    stream file 文件 数据流
    AHK通讯 CMD Lua IPC
    零散 Lua/Excel/''/iup
    Windows Program File(x86) 路径 环境变量
    条件正则过滤筛选 V2
    条件正则过滤筛选 V1
    python导包出现的问题
  • 原文地址:https://www.cnblogs.com/sonyi/p/4128805.html
Copyright © 2011-2022 走看看