Reputation: 61
Is there any way to add .class/.jar file to InelliJ IDEA, so that It will be added to every project created.
I tried
Adding .class to JDK lib/ext directory
Adding it to IntelliJ lib directory
Upvotes: 0
Views: 1440
Reputation: 2148
You can create a new library in File -> Project Structure -> Global Libraries. Then add your classes/jars to that library.
This library will NOT be automatically added to every project you create. Because, this may not be desired in many cases.
You have to add the library to projects manually. You can do it in: File -> Project Structure -> Modules -> Dependencies
Upvotes: 4