`

This compilation unit is not on the build path of a Java project 解决办法​

 
阅读更多

 

搜索发现,大致是因为项目文件缺失。

解决办法:找到项目根目录下的.project文件,修改,加入jdt支持,我的项目修改后如下所示↓

 

[xml] view plaincopy
 
  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <projectDescription>  
  3.     <name>V4</name>  
  4.     <comment></comment>  
  5.     <projects>  
  6.     </projects>  
  7.     <buildSpec>  
  8.         <buildCommand>  
  9.             <name>org.eclipse.jdt.core.javabuilder</name>  
  10.             <arguments>  
  11.             </arguments>  
  12.         </buildCommand>  
  13.     </buildSpec>  
  14.     <natures>  
  15.         <nature>org.eclipse.jdt.core.javanature</nature>  
  16.         <nature>org.apache.ivyde.eclipse.ivynature</nature>  
  17.     </natures>  
  18. </projectDescription>  
分享到:
评论

相关推荐

    Google C++ Style Guide(Google C++编程规范)高清PDF

    Note that this guide is not a C++ tutorial: we assume that the reader is familiar with the language. Header Files In general, every .cc file should have an associated .h file. There are some common ...

    RxLib控件包内含RxGIF,全部源码及DEMO

    This version is the result of long unactivity of RX Library authors and some imperfections and bugs of other RX adaptations to Delphi 6. The authors of this version disclaim all warranties as to ...

    EhLib 6.3 Build 6.3.176 Russian version. Full source included.

    This component is intended for totaling sums and amounts of records in a TDataSet with dynamic changes. Component keeps a list of TDBSum objects, which contains types of group operations (goSum or ...

    DebugFactory3.zip

    4.In the event that you find a defect of this Product and advise OBJECT of it within one(1) year from the date of purchase, OBJECT will pay for the damage. In no event will OBJECT乫s liability to ...

    EurekaLog_7.5.0.0_Enterprise

    18)..Fixed: Possible "Unit XYZ was compiled with a different version of ABC" when using packages 19)..Fixed: FastMM shared MM compatibility 20)..Fixed: Minor bugs in stack tracing (which usually ...

    Eclipse中常见图标说明

    - **Compilation Unit(*.java 文件)**:表示一个Java源代码文件,通常包含一个或多个类定义。 - **Class File**:编译后的字节码文件,对应于源代码中的类。 - **File without icon assigned to its type**:...

Global site tag (gtag.js) - Google Analytics