Solved

Creating jar file from Eclipse

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

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…
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 learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

772 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

11 Experts available now in Live!

Get 1:1 Help Now