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.
            Asked
            
        
        
            Active
            
        
            Viewed 79 times
        
    0
            
            
        - 
                    2Does 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 Answers
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:
- if you use Maven or Gradle - install this library into the local Maven repository (see How to add local jar files to a Maven project?) and configure it via Maven/Gradle build configuration.
 
    
    
        Andrey
        
- 15,144
- 25
- 91
- 187
 
    