views:

220

answers:

2
A: 

IDEA doesn't support it yet, you can use Ant integration to package your jar (either by unpacking all the jars into the temp folder and then packaging the project output plus this temp folder into the single jar or by using some Ant task like jarjar).

If you want this feature to appear in the future IDEA versions, please vote for the request.

CrazyCoder
Sure, I actually can dig out the appropriate ant code from some old project, so it won't be a biggie. But to have IntelliJ "pretend" that it's possible (via a menu item, which admittedly is always greyed-out, and a bland statement in the online manual -- "Use this option to have the selected artifact disassembled and its its components presented as independent elements.") and then not be possible is somewhat...anti-climactic, shall we say!! :-)
skiaddict1
I've voted for the request, BTW
skiaddict1
You should also consider accepting my reply here.
CrazyCoder
A: 

Having the dependency JARs included in your JAR should allow yoru code to run successfully. You probably don't have the JARs on your classpath.

Gweebz