Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

People also ask

How do I export a project as jar in IntelliJ?

Click Project Structure from the file menu. 2. In the Project Structure window, click Artifacts in the left pane, then click the plus symbol. Expand the JAR option and click From module with dependencies.


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.