How do I create a JAR file in IntelliJ?
Open the IntelliJ IDEA Project that’s installed and choose File → Project Structure. Choose Modules from the left panel and then, the Dependencies tab. Choose the + icon and select 1 Directories JARs or option. Choose your JAR file or select the directories. Choose the OK button.