简体   繁体   中英

How to fix IntelliJ does not see dependency JARs in /lib directory?

I got a project for Mondrian and trying to open it with IntelliJ .

Unfortunately, it doesn't see existing jars:

在此处输入图片说明

How to fix?

You may have to add them manually one at a time, and I see at least 2 options:

  • File -> Project Structure -> Libraries -> Green plus at the top
  • From the project tree -> Right click -> Add as a library

After this, you may want to select the type of library each of them is: compile, test, etc. The second approach seems faster, and is illustrated below:

IJ-手动添加依赖项

PS: If at all possible, I would migrate to a maven , gradle , etc which offer dependency management (including sources and javadocs where available) as well as automated builds & other tools (tests, reports, deploys, etc).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM