开发者

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

开发者 https://www.devze.com 2022-12-16 06:04 出处:网络
This question already has answers here: How to build JARs from IntelliJ properly? (23 answers) Closed 9 years ago.
This question already has answers here: How to build JARs from IntelliJ properly? (23 answers) Closed 9 years ago.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号