How to create a .jar file or export JAR in IntelliJ IDEA (like Eclipse Java archive export)?

Viewed 363701

I was using IntelliJ IDEA IDE. I want to create a JAR file from Java compiled class files. But I didn't find a command or file.

How to create a JAR file (like it is done in Eclipse)?

3 Answers

You didn't specify your IDEA version. Before 9.0 use Build | Build Jars, in IDEA 9.0 use Project Structure | Artifacts.

In intellij8 I was using a specific plugin "Jar Tool" that is configurable and allows to pack a JAR archive.

Related