IntelliJ: Classes from imported jar not visible inside packages

三世轮回 提交于 2019-12-06 02:42:14

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/18111277/intellij-classes-from-imported-jar-not-visible-inside-packages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!