Referencing a .class file in IntelliJ Java Project

前端 未结 4 1832
温柔的废话
温柔的废话 2020-12-11 14:54

I just started playing around with IntelliJ. I need to call a function from a class file I downloaded, so I need to reference a .class file in my project. Can\'t figure out

4条回答
  •  天涯浪人
    2020-12-11 15:19

    For the newer versions of Intellij, press Ctrl + Alt + Shift + s to open project settings, then choose Modules, under Dependencies tab choose the green + and add the folder in which your .class file is located. Under scope, choose compile.

提交回复
热议问题