maven管理jar包后,依然找不到Jar包或者ClassNotFound的解决,比如如下错误 :

java.lang.ClassNotFoundException:
com.github.pagehelper.PageInterceptor at…
maven管理jar包后依然找不到Jar包或者ClassNotFound的解决

解决方法如下:

  1. Open the project’s properties (e.g., right-click on the project’s name in the project explorer and select “Properties”)
    打开项目的配置文件(在项目列表,右击项目名称,选择"Properties")
    maven管理jar包后依然找不到Jar包或者ClassNotFound的解决
  2. select “Deployment Assembly”
    选择"部署程序集"
    maven管理jar包后依然找不到Jar包或者ClassNotFound的解决
  3. Click the “Add…” button on the right margin
    点击右边的“新增…”按钮
    maven管理jar包后依然找不到Jar包或者ClassNotFound的解决
  4. Select “Java Build Path Entries” from the menu of Directive Type and click “Next”
    选择指令种类菜单下面的“Java生成路径项”,并选择“下一步”
    maven管理jar包后依然找不到Jar包或者ClassNotFound的解决
  5. Select “Maven Dependencies” from the Java Build Path Entries menu and click “Finish”.
    勾选“Java生成路径项”菜单中的Maven依赖,并点击“结束”。

相关文章:

  • 2021-12-15
  • 2021-10-24
  • 2022-12-23
  • 2021-11-06
  • 2021-07-30
  • 2021-04-22
  • 2021-07-15
  • 2021-03-30
猜你喜欢
  • 2022-12-23
  • 2021-07-18
  • 2021-12-22
  • 2021-05-14
  • 2022-01-06
  • 2022-12-23
  • 2021-06-04
相关资源
相似解决方案