Solved

Creating jar file from Eclipse

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
thymeleaf natural templating vs JSP 2 95
hibernate jars 4 29
iterator/ListIterator approach 17 26
Problem to Alipay 10 22
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

770 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