0

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.

  • 2
    Does this answer your question? [How to use classes from .jar files?](https://stackoverflow.com/questions/460364/how-to-use-classes-from-jar-files) – Amr Saeed Mar 06 '21 at 01:34

1 Answers1

0
  • 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

Andrey
  • 15,144
  • 25
  • 91
  • 187