How to create a .jar file or export jar on IntelliJ (like eclipse java archive export)

sungkwangsong picture sungkwangsong · Jan 8, 2010 · Viewed 326.2k times · Source

I was using IntelliJ-IDEA IDE , I want to create a jar file from java compiled class files. but I not found command or file, How to create a jar file (like eclipse java archive export)

Answer

Ben picture Ben · Feb 27, 2012

For Intellij IDEA version 11.0.2

File | Project Structure | Artifacts then you should press alt+insert or click the plus icon and create new artifact choose --> jar --> From modules with dependencies.

Next goto Build | Build artifacts --> choose your artifact.

source: http://blogs.jetbrains.com/idea/2010/08/quickly-create-jar-artifact/