Referencing a .class file in IntelliJ Java Project

前端 未结 4 1840
温柔的废话
温柔的废话 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:43

    Select the root of your project and press F4. Then you'll see the project structure. Select the 'Libraries' section on the left hand side and click the plus symbol to create a 'New Project Library'. Choose 'Java' and select the directory where the .class file(s) is located. Proceed the remaining steps by clicking 'OK'.

提交回复
热议问题