Solved

Creating jar file from Eclipse

Posted on 2007-11-29
2
6,546 Views
Last Modified: 2010-05-18
I need to create a jar file from eclipse tool. I have a ant file to create  the jar, but in this case I need to manually create the jar file. The and file looks as below

<echo message="Generating the temp.jar file..." />
 <jar destfile="${dist.dir}/${jar.name}" compress="true" >
      <fileset dir="${output.dir}" />
      <fileset dir="src" >
        <include name="**/*.xml" />
        <include name="**/*.properties" />
        <include name="conf/**" />
      </fileset>
    </jar>

I have seen the export in the file menu of eclipse, but I was doubtful. To make sure I am right, I would like you to guide me
0
Comment
Question by:rmvprasad
2 Comments
 
LVL 16

Accepted Solution

by:
ellandrd earned 125 total points
ID: 20377117
you can create the jar really easy by selecting your project and the export button from context menu. Select jar file from dialog box and follow the instructions in Export wizard.  you cant go wrong.  have you tried doing it yet?

if your really doubtful follow this easy screenshot guide:

http://www.fsl.cs.sunysb.edu/~dquigley/cse219/index.php?it=eclipse&tt=jar&pf=y

ellandrd
0
 
LVL 23

Expert Comment

by:Ajay-Singh
ID: 20378447
These two are not related...
So, You can export in either way. With ant, you should run that as ant
script.
While exporting from eclipse menu, you don't need ant.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This video teaches viewers about errors in exception handling.

830 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