How do I use a class from my Jar file in my IntelliJ project?

145 views Asked by At

I have a jar file and I am trying to use classes from that file in other programs, and the only way I know how to do that is by copying and pasting the code, which is less than ideal.

1

There are 1 answers

0
Andrey On
  • If you do not use Maven or Gradle - add this jar as a Global library to an IDE in File | Project Structure | Global Libraries tab by selecting + then Java option:

enter image description here