Mian Bilawal
Mian Bilawal

Reputation: 61

Adding class/jar file to IntelliJ IDEA

Is there any way to add .class/.jar file to InelliJ IDEA, so that It will be added to every project created.

I tried

Upvotes: 0

Views: 1440

Answers (2)

Prasad Karunagoda
Prasad Karunagoda

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

Bor Laze
Bor Laze

Reputation: 2516

Add your jar here: File | Project Structure | Global Libraries

Upvotes: 2

Related Questions