zoukankan      html  css  js  c++  java
  • eclipse工程名出现小红叉的解决办法

    前提是eclipse工程中每个子文件都没错,工程名上却显示了小红叉。

    打开【Window】->【Show View】->【General】->【Problems】,看看Problems窗口提示的错误。

    我的错误显示是:Target runtime Apache Tomcat v6.0 is not defined.

    这就对了,因为我使用的Tomcat版本是7.0,明显是某些地方出了差错。

    打开相应工程文件夹下.settings文件夹,编辑其中的org.eclipse.wst.common.project.facet.core.xml文件:

    <?xml version="1.0" encoding="UTF-8"?>
    <faceted-project>
      <runtime name="Apache Tomcat v6.0"/>
      <fixed facet="jst.web"/>
      <fixed facet="wst.jsdt.web"/>
      <fixed facet="java"/>
      <installed facet="java" version="1.7"/>
      <installed facet="jst.web" version="2.5"/>
      <installed facet="wst.jsdt.web" version="1.0"/>
    </faceted-project>

    改变Tomcat的版本号:

    <?xml version="1.0" encoding="UTF-8"?>
    <faceted-project>
      <runtime name="Apache Tomcat v7.0"/>
      <fixed facet="jst.web"/>
      <fixed facet="wst.jsdt.web"/>
      <fixed facet="java"/>
      <installed facet="java" version="1.7"/>
      <installed facet="jst.web" version="2.5"/>
      <installed facet="wst.jsdt.web" version="1.0"/>
    </faceted-project>

    保存。

    刷新工程,问题解决。

     

  • 相关阅读:
    UVa 839 -- Not so Mobile(树的递归输入)
    UVa 548 -- Tree
    UVA 122 -- Trees on the level (二叉树 BFS)
    UVa679 小球下落(树)
    POJ 2255 -- Tree Recovery
    POJ 1451 -- T9
    POJ 2513 -- Colored Sticks
    STL -- heap结构及算法
    nginx利用try_files实现多个源
    nginx location的优先级
  • 原文地址:https://www.cnblogs.com/SolarLau/p/4241883.html
Copyright © 2011-2022 走看看