How to dreate JAR file with JIdea

Does anybody knows if it is possible to generate a JAR file from the output of the compilation of a JIdea project ?
Thanks in davance for your answers


1 comment

Can't be done directly, to the best of my knowlege. The preferred way of doing so is to create an Ant script which does your compilation and jarring (and any of the thousand and one other things you might need for your build). IDEA then has some really nice Ant integration so that you can trigger your builds from within IDEA (even binding them to keystrokes). There really isn't any excuse for a Java programmer not to know and use Ant. Compilation directly from an IDE only makes sense for very simple projects, usually one-developer throwaways.

--Dave Griffith


Please sign in to leave a comment.