`
Before_Morning
  • 浏览: 36833 次
文章分类
社区版块
存档分类
最新评论

This compilation unit is not on the build path

 
阅读更多

This compilation unit is not on the build path of a Java project 解决办法​:大致是因为项目文件缺失

解决方法:

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

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>dmp_pj</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
		<buildCommand>
			<name>org.eclipse.jdt.core.javabuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
	</buildSpec>
	<natures>
		<nature>org.eclipse.jdt.core.javanature</nature>
		<nature>org.apache.ivyde.eclipse.ivynature</nature>
	</natures>
</projectDescription>



分享到:
评论

相关推荐

    Eclipse图标意义

    * Java file which is not on a build path:Java文件,但不在构建路径中。 * class file:类文件。 * file without icon assigned to its type:文件,但没有分配图标。 * unknown object:未知对象。 Object ...

    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.

    EhLib 6.3 Build 6.3.176 Russian version. Full source included. ------------------------------------------------------------------- The Library contains components and classes for Borland Delphi ...

    DebugFactory3.zip

    2.This product is designed for the evaluation of hardware and software. 3.In no event will OBJECT and Matsushita Electric Industrial Co.,Ltd.Semiconductor Company be liable to you for any direct/...

    FastReport.v4.15 for.Delphi.BCB.Full.Source企业版含ClientServer中文修正版支持D4-XE5

    FastReport® VCL is an add-on component that allows your application to generate reports quickly and efficiently. FastReport® provides all the tools necessary for developing reports, including a ...

    EurekaLog_7.5.0.0_Enterprise

    14)..Added: Support for texts collections out of default path 15)..Added: Support for relative file paths to text collections and external settings 16)..Added: Support for environment variables in ...

    Eclipse中常见图标说明

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

    MyEclipse小图标的含义[参照].pdf

    - **Compilation Unit(*.java 文件)**:表示一个Java源代码文件,是程序的基本单元。 - **Class File**:编译后的Java类文件,通常对应于源代码中的`.java`文件。 - **File Without Icon Assigned**:表示没有...

    eclipse图标含义备忘录

    例如,CompilationUnit(*.java)文件指的是Java源代码文件,而如果Java文件不在构建路径上,则会有不同的图标表示。Class file(类文件)表示编译后的字节码文件。此外,还提到了没有图标分配的对象文件,这些通常是指...

Global site tag (gtag.js) - Google Analytics