Solved

making "jar" files with intellij idea

Posted on 2004-09-29
5
4,656 Views
Last Modified: 2013-12-14
How can i build ".jar" output for my project in intellij idea?
0
Comment
Question by:somebody314
  • 2
5 Comments
 
LVL 4

Expert Comment

by:gdrnec
ID: 12179256
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.
0
 

Author Comment

by:somebody314
ID: 12179299
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.
0
 
LVL 4

Accepted Solution

by:
gdrnec earned 25 total points
ID: 12179431
It does actually. If you create a new ant file (usually called build file) and then add a task to the ant file as above. When you execute the ant file, it will do the task and build your jar.

Geoff
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
recursion example 16 112
thymeleaf natural templating vs JSP 2 69
difference of if loops 23 43
fibonacci ten numbers 4 30
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now