简体   繁体   中英

IntelliJ: Classes from imported jar not visible inside packages

I added external jar file( stdlib.jar on picture) to my project in IntelliJ(12.1.4), but when I want to use some static methods from it in created package ( ChapterOne ) it can't resolve it. However it finds classes in default package without problem . How I can make it work ?

It seems that dependencies are ok.

The libraries were configured correctly in IDEA, but the jars actually contained sources, not classes. So the solution is to unpack these sources from the jar files into the module src directory.

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