[solved]Merge libraries/jar files into jar artifact?

I have my project set up to create an artifact which currently is a folder, which includes a /lib folder containing all the .jar files the project needs (as project libraries), as well as a main jar file w/ manifest.

What I want is to create a .jar file which contains within it all the /lib/*.jar files the program needs to run. Unfortunately, I can't figure out how to do this in IntelliJ 9.

I'm sure this is a simple task, but no documentation on IntelliJ mentions it (that I can find.) Probably I just don't have a clue where to look.

Thanks in advance for any help.

Vanessa

2 comments

I found the solution to this. Under Artifact, add a directory inside the .jar artifact called lib and then add all the appropriate project libraries to it using "Add copy of...".

This seemed to work for me.

0

this is not even working .... Guys at JetBrains please make a simple tutorial on this !!!!!!

0

Please sign in to leave a comment.