Bug 122466

Summary: Exporting Java classes into a Jar
Product: [Eclipse Project] JDT Reporter: Brian L. <brian.lajevardi>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: brian.lajevardi
Version: 3.1.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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 ***