Solved

Creating jar file from Eclipse

Posted on 2007-11-29
2
6,542 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

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

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
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.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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…

943 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

10 Experts available now in Live!

Get 1:1 Help Now