Link to home
Start Free TrialLog in
Avatar of somebody314
somebody314

asked on

making "jar" files with intellij idea

How can i build ".jar" output for my project in intellij idea?
Avatar of gdrnec
gdrnec
Flag of United States of America image

I always find that the easiest way of building a project (creating your jar) is to use ant. IntelliJ has ant support so it should be straight forward. Just create a new jar ant task and give it the files you want included and then execute the ant script.

The ant task looks something like this:

<jar basedir="${build-location}" destfile="${deploy-location}\jarname.jar"/>


Very simple.
Avatar of somebody314
somebody314

ASKER

But how can i create a new jar ant task?
I have seen "Create ant file" or something like that in the build menu but it does nothing with outputting ".jar" files.
ASKER CERTIFIED SOLUTION
Avatar of gdrnec
gdrnec
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial