zoukankan      html  css  js  c++  java
  • The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path(Myeclipse添加Server Library)

    网上找练习的项目导入到myeclipse项目发现每个JSP

    出现错误The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

    看情况应该是web服务器的问题. 

    但是,myeclipse我也配置好tomcat.

    度娘说是在配置构建中 add library添加 Server Runtime 然后蒙了一圈.

    在Myeclipse里找了一圈,硬是没发现在哪里可以添加

    继续度娘Server Library

    上面说要先配置

    1.File-->New-->Other-->搜索"Server"(勾上Show All Wizards,不然搜索不到server)-->

    -->Apache-->Tomcat v6.0 Server 

    2.Project->Properties->Java Build Path->Libraries->Add Library->WTP Server Runtime(MyEclipse incompatible)->next->Tomcat v6.0 Server->Tomcat v6.0 Server

    晕死,做完第一步 配到第二步 Project->Properties->Java Build Path->Libraries->Add Library 发现还是没有 Server Runtime

    认真看了一下.有个选项  Myeclipse Server Library 点开一下终于看到server了. 原来是在这里..........

    突然想起是版本问题.我用的是Myeclipse 2014  估计度娘上面说的是 8.5 10.0 版本的.坑爹.

    2014版本只要在window-->preferences-->myeclipse-->  servers --> tomcat x.x 下面配置好

    然后就可以在 Myeclipse Server Library 看到了. 

    PS:切记,切记! 以后写东西一定要注明版本号.

  • 相关阅读:
    【原创】虚拟机上实现绑定固定IP扩主机容器互访
    docker entrypoint入口文件详解
    数据库博客推荐
    docker下centos安装ping命令
    Dockerfile指令详解
    Elasticsearch Java API 的使用
    docker容器里面安装ssh
    RPM安装命令总结
    Docker容器的跨主机连接
    使用Java程序片段动态生成表格
  • 原文地址:https://www.cnblogs.com/orac/p/6651790.html
Copyright © 2011-2022 走看看