`
luckywii
  • 浏览: 16688 次
  • 性别: Icon_minigender_1
  • 来自: 郑州
社区版块
存档分类
最新评论

eclipse中导入源码出现The declared package does not match the expected package的解决办法

    博客分类:
  • java
阅读更多
eclipse用的不熟,今天看lucene3.1,用到paoding分词,但是新版本的paoding只有源码,没有jar包,将源码导入工程的步骤如下:
工程右键> Build Path > Configure Build Path > Source > Link Source,
选择source folder,
但是会报The declared package does not match the expected package 的错误,
解决办法:
右键单击在上面的source下,选择相应的source folder,点击右边的Edit,
在Linked folder location对话框中的路径后追加路径到包的上一层。
分享到:
评论

相关推荐

    如何使用Eclipse导入并运行源码

    - **包声明不匹配**:如果出现类似`The declared package does not match the expected package appendixa Stringer.java Thinking in Java/appendix`这样的错误,说明源代码中的包结构与实际存放位置不符。...

    如何使用eclipse打开已有工程.docx

    The declared package does not match the expected package appendixaStringer.java Thinking in Java/appendixaline 12022 年 11 月 11 日 14:11:20 3870 可以添加 package appendixa 命令来解决。 在运行程序时...

    spring boot shiro demo项目

    Realm是Shiro与应用的持久层交互的接口,你需要自定义 Realm 类并实现获取用户信息、验证用户凭证的方法。 - 配置Shiro Filter,定义过滤规则,如登录拦截、权限拦截等。Shiro Filter Chain 配置决定了哪些URL需要...

    codeblocks中报错:'to_string' was not declared in this scope解决方案

    在Code::Blocks中遇到“'to_string' was not declared in this scope”的错误,通常是由于编译器版本过低或者没有包含正确的头文件所导致的。`std::to_string`是C++11标准引入的一个函数,用于将数字转换为字符串。...

    Eclipse-OSGi内核源码分析

    Eclipse-OSGi内核源码分析的目标是帮助开发者深入理解OSGi技术及其在Eclipse平台中的应用。通过详细探讨Eclipse OSGi内核的实现细节和工作原理,开发者可以掌握如何有效地利用OSGi进行模块化开发,提升软件系统的可...

    variable declared but not used(解决方案).md

    variable declared but not used(解决方案).md

    Eclipse-OSGi内核源码分析.pdf

    Eclipse OSGi是基于OSGi规范的动态模块化系统,用于构建可管理的Java应用程序。OSGi(Open Services Gateway Initiative)规范定义了一套用于开发和运行模块化软件程序和中间件的标准。Eclipse OSGi框架允许运行时...

    Maven3实战笔记04Maven的生命周期和插件

    5. **package**:执行Default生命周期中的`package`阶段,调用`maven-jar-plugin`的`jar`目标来打包项目。 6. **install**:执行Default生命周期中的`install`阶段,将构建好的包安装到本地仓库。 通过这种方式,...

    a project model for the FreeBSD Project.7z

    The vision is “To produce the best UNIX-like operating system package possible, with due respect to the original software tools ideology as well as usability, performance and stability.” The ...

    The Go Programming Language(Addison,2015)

    The book does not assume prior knowledge of Go nor experience with any specific language, so you'll find it accessible whether you're most comfortable with JavaScript, Ruby, Python, Java, or C++. ...

    The.Go.Programming.Language.0134190440.epub

    The book does not assume prior knowledge of Go nor experience with any specific language, so you’ll find it accessible whether you’re most comfortable with JavaScript, Ruby, Python, Java, or C++. ...

    thymeleaf-extras-eclipse-plugin-2.1-master.zip

    A plugin for the Eclipse IDE to add content assist features for the Thymeleaf standard dialect processors and expression utility objects, using the Eclipse Web Tools Platform HTML source editor. ...

    acpi控制笔记本风扇转速

    _HID does not match the predefined PCI Root Bridge IDs, the _CID list (if present) is now obtained and also checked for an ID match. Implemented additional support for the PCI _ADR execution: up...

    Senfore_DragDrop_v4.1

    * The Shell Extension components does not support C++ Builder 4. For some strange reason the components causes a link error. * There appear to be sporadic problems compiling with C++ Builder 5. ...

    JSP Simple Examples

    Suppose if we have declared an array of type int then the array will take only the int values and not any other data types. We can find find out the length of the variable by using the variable ...

    ssd3选择题答案大全

    - **正确答案**:(b) println appends a newline to the end of its output, but print does not - **解析**:`println`方法会在输出结束后自动添加一个换行符,而`print`方法则不会添加换行符。 #### 5. What will...

    CentOS7升级GCC版本到gcc 8.3.0,解决GLIBCXX-3.4.21 not found 问题

    解决/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found 问题 步骤如下: 解压文件: $ unzip gcc-8.3.0.zip 解压完成,进入文件目录: $ cd gcc-8.3.0 利用源码包里自带的工具下载所需要的依赖项: $ ./...

    mysql 客户端软件 mymanager_lite

    The software contains all files of the installation package except for the "Dump" folder contents. This LICENSE AGREEMENT ("LICENSE") defines what the USER may do with the SOFTWARE, and contains ...

Global site tag (gtag.js) - Google Analytics