`

The resource is not on the build path of a Java project

阅读更多

昨天刚从SVN上下载的一个项目,今天想研究一下,结果在MyEclipse中用“ctrl+鼠标左键”或F3,进行查找的时候报如下错误:

The resource is not on the build path of a Java project

产生这种提示的原因就是:你此时操作的该文件不是你本地的source file,此时你的文件很可能是“以一个虚的‘J’”显示的,可能是映射的相对路径的文件,所以MyEclipse不能够确定所要查找的文件中类或者方法的位置。直观原因是缺少.project .classpath文件。

解决办法:创建上面两个文件,在做修改。

或者在MyEclipse中使用查找文件的快捷键是:ctrl+shift+R

分享到:
评论
1 楼 java_MagicWang 2013-06-17  
.project .classpath文件已存在但还是不能用快捷键咋办?

相关推荐

    解决The project cannot be built until build path

    解决 Eclipse 中“项目无法构建直到build path”问题 Eclipse 是一个功能强大且流行的集成开发环境(IDE),广泛应用于 Java Web 开发中。但是在使用 Eclipse 进行项目开发时,经常会遇到“项目无法构建直到build ...

    Xcode_Build_Setting_Reference

    It is used to separate the output of different targets within a project. ##### TARGET_TEMP_DIR This setting determines the directory for temporary files generated for the target. Temporary files can...

    PythonRobotics a Python code collection of robotics algorithms.pdf

    PythonRobotics is not just a collection of algorithms but also serves as an educational resource. It provides a hands-on approach to learning about autonomous navigation technologies. By offering well...

    Java - The Well-Grounded Java Developer

    The book "Java - The Well-Grounded Java Developer" provides a comprehensive guide to developing with Java 7 and exploring the world of polyglot programming on the JVM. It covers essential topics ...

    apktool documentation

    unknown = Files / folders that are not part of the standard AOSP build procedure. These files will be injected back into the rebuilt APK. apktool.yml collects more information than last version ...

    ICS delphixe10源码版

    ICS V8 is the current development release which is held in a public Version Control repository that is zipped each night for easy download. The download page above also includes the OpenSSL binaries ...

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

    TRxMemoryData is a in-memory dataset that mimics the behaviors of a regular Delphi dataset. Unlike TMemoryTable component, TRxMemoryData is BDE independent. This means it can still be used by any ...

    ebook-flutter-revolution.pdf

    course offers a comprehensive guide to getting started with Flutter, covering everything from the basics of the framework and the Dart programming language to setting up development environments on ...

    EhLib 9.1.024

    To install a new version of the library in the IDE, use the installation program .\Installer\EhLibInstaller.exe If, at the installation have any problems, write a letter to ehlib support address ...

    ehlib_vcl_src_9_3.26

    To install a new version of the library in the IDE, use the installation program .\Installer\EhLibInstaller.exe If, at the installation have any problems, write a letter to ehlib support address ...

    HTML5.and.CSS3.Building.Responsive.Websites.pdf

    Packed with examples and a thorough explanation of modern techniques and syntax, the second module provides a comprehensive resource for all things “responsive.” You'll explore the most up-to-date ...

    Delphi7.1 Update

    * When using RefreshRecord on a Memo or Blobfield and the field has been modified by another user, the blobsize of that field does not change if it is less than before (Quality Central 4676).* ...

    Professional.MFC.with.VC6

    Easing the Build Process Using Dynamic-link Libraries with C++ Name Mangling Alternative Calling Conventions Using and Writing DLLs with MFC MFC DLL Models Summary of DLL Models About DLLApp ...

    Clever Internet Suite (SRC) v9.1.0.0

    With SMTP relay, a mail message may pass through a number of intermediate relay or gateway hosts on its path from sender to recipient. HTML Parser - parse HTML Tags: links, images, tables, meta tags ...

    m6a—insight

    CMake Error: The current CMakeCache.txt directory C:/DC105_Dupli.SearchResults/build/CMakeCache.txt is different than the directory c:/D/DC105_xxxx/trunk/build where CMakeCache.txt was created....

    java eclipse 出现 xxx cannot be resolved to a type 错误解决方法

    Java Eclipse 出现 "xxx cannot be resolved to a type" 错误解决方法 Java Eclipse 是一个功能强大且广泛使用的集成开发环境(IDE),但是在使用过程中可能会出现各种错误信息,例如 "xxx cannot be resolved to a...

    Delphi-OpenCV

    Add the search path for the modules of the project in Delphi IDE (Tools-Options-Delphi Options-Library-Library path) <PROJECT_ROOT>\source <PROJECT_ROOT>\source\utils <PROJECT_ROOT>\source\component ...

    spring-boot-reference.pdf

    10.1. Installation Instructions for the Java Developer 10.1.1. Maven Installation 10.1.2. Gradle Installation 10.2. Installing the Spring Boot CLI 10.2.1. Manual Installation 10.2.2. Installation with...

    java 知识整理笔记

    3. 通过右键项目 -> Build Path -> Configure Build Path...,调整源代码路径,确保Java文件存放在正确的位置。 4. 删除默认的配置,添加实际的Java源代码文件夹。 5. 删除项目中的bin目录,以及WebRoot下的WEB-INF/...

Global site tag (gtag.js) - Google Analytics