building a jar - newbie how-to [message #58796] |
Mon, 16 June 2003 16:47  |
Eclipse User |
|
|
|
Originally posted by: russ.sdsusa.com
I've looked over the help screens on building a jar and I'm running into
some problems. The first time I tried to build a jar using the
Export/Jar Wizard, a bunch of extra classes were included in my jar.
So, I tried again but this time I generated and saved the manifest and
the description. Since I've done that, any time I try to jar, all I get
is a jar containing the manifest.
There must be some way of telling eclipse to just put two classes into a
jar, nothing else, but I haven't seen the way to do it. Also, no clue
as to why it decided after my first attempt to only put the manifest in
the jar.
Any ideas? There must be some easy way that I'm missing.
TIA
Russ
|
|
|
Re: building a jar - newbie how-to [message #58821 is a reply to message #58796] |
Mon, 16 June 2003 17:30   |
Eclipse User |
|
|
|
Originally posted by: richkulp.NOSPAM.us.ibm.com
To create it the first time, and only have specific classes in the jar,
and to remember this:
1) On the first page of the JAR Export wizard, in the "Select Resources
to Export" tree, unselect the project from the tree on the left, then go
into the tree on the right and select only the classes you want in the jar.
2) Hit the Next button after choosing the destination jar, and on the
next page, select the "Save the description of the JAR in the workspace"
checkbox, and using the Browse button, choose where to put the
description and what to call it.
3) Then on the Next page you can do what you want with the manifest.
4) Finally hit "Finish"
Then the next time you want to this same jar, go the .jardesc file you
created from step (2) above, bring up the popup menu and either do "Open
Jar Packager..." if you want to make changes, or just do "Create JAR" if
you want a jar with no changes to the contents.
Rich
|
|
|
Re: building a jar - newbie how-to [message #58846 is a reply to message #58821] |
Mon, 16 June 2003 18:00  |
Eclipse User |
|
|
|
Originally posted by: russ.sdsusa.com
Thanks Richard. I just needed to make a fool of myself, I guess. I looked at
the wizard and saw that I said to exclude classes with warnings, and duh, my
classes had warnings. Maybe I can request a feature that the product slaps me
when I do something like that?
"Richard L. Kulp" wrote:
> To create it the first time, and only have specific classes in the jar,
> and to remember this:
>
> 1) On the first page of the JAR Export wizard, in the "Select Resources
> to Export" tree, unselect the project from the tree on the left, then go
> into the tree on the right and select only the classes you want in the jar.
>
> 2) Hit the Next button after choosing the destination jar, and on the
> next page, select the "Save the description of the JAR in the workspace"
> checkbox, and using the Browse button, choose where to put the
> description and what to call it.
>
> 3) Then on the Next page you can do what you want with the manifest.
>
> 4) Finally hit "Finish"
>
> Then the next time you want to this same jar, go the .jardesc file you
> created from step (2) above, bring up the popup menu and either do "Open
> Jar Packager..." if you want to make changes, or just do "Create JAR" if
> you want a jar with no changes to the contents.
>
> Rich
|
|
|
Powered by
FUDForum. Page generated in 0.06508 seconds