Right mouse-click on the project name in Package Explorer perspective.
Select Export and follow the wizard. One of the options in it will let you
select only .class files for exporting into the JAR.
Reading the on-line docs on Eclipse is also VERY beneficial.
Been there, done that. When the JAR Export dialog box comes up, it
gives three choices:
"Export generated class files and resources"
"Export all output folder for checked projects"
"Export java source files and resources"
The first choice is the only one that comes close. But if you uncheck
each resource, the "Finish" button goes dark, implying that you have to
include at least one resource file with the .class files.
I read the online documents but didn't find the answer there. If I
overlooked something in the online documents, please don't hesitate to
direct me to the correct page.
Thanks
ninhoa@yahoo.es - 15 Mar 2005 16:18 GMT
> Been there, done that. When the JAR Export dialog box comes up, it
> gives three choices:
[quoted text clipped - 10 lines]
>
> Thanks
The 'Finish' button never goes dark (at least for my Eclipse 3.0) as
long as you keep one (or more) .java files or resources selected. The
generated jar will contain the compiled classes.
Alex Molochnikov - 15 Mar 2005 17:32 GMT
> Been there, done that. When the JAR Export dialog box comes up, it
> gives three choices:
[quoted text clipped - 4 lines]
> each resource, the "Finish" button goes dark, implying that you have to
> include at least one resource file with the .class files.
"Export generated class files and resources" is what you need. The list of
resources to export can be tuned manually; check only .java files, and
ignore everything else. You JAR file will contain only .class files.
> I read the online documents but didn't find the answer there. If I
> overlooked something in the online documents, please don't hesitate to
> direct me to the correct page.
Help > Help Contents
Type "export" in the Search field.
Read up on the Export Wizard, JAR file export etc.
> Thanks