`

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>  
分享到:
评论

相关推荐

    Java_for_the_Web_with_Servlets

    - **How a Servlet Works**: When a request is sent to a servlet, the servlet container creates a new instance of the servlet if one does not already exist. The `init()` method initializes the servlet, ...

    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 ...

    PowerCommands for Visual Studio 2008

    PowerCommands 1.1 is a set of useful extensions for the Visual Studio 2008 adding additional functionality to various areas of the IDE. The source code is included and requires the VS SDK for VS 2008 ...

    现代编译原理-Java语言描述

    A unique feature of the book is a well designed compiler implementation project in Java, including front-end and 'high-tech' back-end phases, so that students can build a complete working compiler in...

    微软内部资料-SQL性能优化5

    There is also a column for the first page of the table, but this is not guaranteed to be reliable. SQL Server can find all pages belonging to an index or table by examining the IAM pages. Sysindexes...

    Error:java: Compilation failed: internal java compiler error

    在使用IntelliJ IDEA(简称Idea)进行Java开发时,有时会遇到“Error:java: Compilation failed: internal java compiler error”的错误提示,这通常意味着编译过程中遇到了内部错误,可能是由于配置问题、环境问题...

    Universal-USB-Installer

    Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative...

    WizFlow网页编辑

    GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 ... 51 Franklin Street, ...Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; ...

    hibernate-shards.jar

    Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative...

    MiViBES_v1.60_VideoPlayer

    This piece of software is part of a research project called AMUSE 2.0 at the Telecommunications Research Center Vienna (ftw.) For this OpenSource release many parts are disabled, mainly interaction ...

    issrc-5.3.3.zip_The Front_delphi inno setup

    Non Unicode Inno Setup note: This is the only project that I compile under Delphi 3 (3.02 to be exact). The rest of the projects are compiled under Delphi 2.01. ISCC.dpr - This is the command-line ...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    connector's end point moving, the link is breaks if the move was not on one of the flex-controls connection points. Contain False as default. - ADD Added ControlDocRect parameter in event ...

    sbt in Action(Manning,2015)

    A tutorial about effectively building Scala projects, sbt in Action introduces the sbt tool with a simple project that establishes the fundamentals of running commands and tasks. Next, it shows you ...

    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 ...

    Java: High-Performance Apps with Java 9

    Java: High-Performance Apps with Java 9: Boost your application’s performance with the new features of Java 9 By 作者: Mayur Ramgir – Nick Samoylov ISBN-10 书号: 1789130514 ISBN-13 书号: ...

    acpi控制笔记本风扇转速

    the Switch() operator is within a while loop, causing an error on the second iteration. (BZ 460) Disassembler - fix for error emitted for unknown type for target of scope operator. Now, ignore it and...

    vuex 解决报错this.$store.commit is not a function的方法

    当遇到 `this.$store.commit is not a function` 的错误,通常是因为在尝试调用 Vuex 中的 mutation 方法时,没有正确地配置或引用 store。 首先,我们需要确保正确安装了 Vuex。通过运行 `npm install vuex --save...

Global site tag (gtag.js) - Google Analytics