Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

making "jar" files with intellij idea

Posted on 2004-09-29
5
Medium Priority
?
4,722 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 100 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

916 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