Home  >  Q&A  >  body text

intellij-idea - intellij idea 导入 eclipse程序, 编译时提示 找不到jar包

已添加了lib:
但是external libraries 里面没有 lib:
写代码的时候可以使用jar包, 但编译的时候会报错"找不到 xxxjar包"

巴扎黑巴扎黑2736 days ago3542

reply all(5)I'll reply

  • 黄舟

    黄舟2017-04-22 09:02:34

    I have also encountered this problem. My solution is a bit stupid, copy the jar package to the lib folder.
    Hope it can inspire others. .

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-22 09:02:34

    Intellij is different from eclipse, even if you put the jar package in the lib directory, it won't work (I mean when developing in the IDE).
    The solution is to manually re-import the jar package in the external lib. An iml project file will be generated, and IntelliJ will recognize this file.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-22 09:02:34

    Maven is a great method, you can rely on it without any worries from now on

    reply
    0
  • PHP中文网

    PHP中文网2017-04-22 09:02:34

    Gradle is great, kill m2 instantly

    reply
    0
  • PHP中文网

    PHP中文网2017-04-22 09:02:34

    idea is not eclipse, Gradle is rampant here

    reply
    0
  • Cancelreply