How to create a .jar file or export JAR in IntelliJ IDEA (like Eclipse Java archive export)? [duplicate]
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)?
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/
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.
精彩评论