Bug 122466 - Exporting Java classes into a Jar
Summary: Exporting Java classes into a Jar
Status: RESOLVED DUPLICATE of bug 118223
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-02 13:33 EST by Brian L. CLA
Modified: 2006-01-04 10:07 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian L. CLA 2006-01-02 13:33:46 EST
Hi there,
I am moving from VisualAge for Jave to Eclipse.  In VisualAge there is a very good utility to export the classes into a Jar.  This export function also gives you the option of finding all referenced classes and resources in the exporting classes and put them into the same jar.
I am trying to find such a capabilty in Eclipse with no success.  The export utilty of Eclipse is very poor.  It allows you to select different projects during export process.  Selecting those projects causes to put bunch of not needed classes into the jar.
I also relaized that there are bunch anonymous inner classes in the exported jar like:

GeneratorPanel$1.class
GeneratorPanel$2.class
GeneratorPanel$3.class
GeneratorPanel$4.class
GeneratorPanel.class
I think the export feature should be smart enough to put only one file into the Jar file, otherwise there would thousands of these classes in a big project.
I am not sure if I am missing something here, but I post this issue in newcomer news group and Jeff Myers suggested to post this here as enhancement request.

Thanks,

Brian
Comment 1 Martin Aeschlimann CLA 2006-01-04 10:07:00 EST
Anonymous classes are required, they can't be put to a single file. 

*** This bug has been marked as a duplicate of 118223 ***