Clean & Build in eclipse [message #1272909] |
Tue, 18 March 2014 23:36  |
Eclipse User |
|
|
|
Hello, I've finally swapped over to eclipse seriously but am confused on how to get a neat distribution directory. In Netbeans, I jumped a couple of hoops in order to get my distribution folder to include a README and resources folder. I'd like to simulate this exact behavior in eclipse. Why not include them as a resource in the jar file? The hassle of extra code for making the resources writable during testing.
Currently my project contains the folders:
bin, src, resources along with the other necessities
I'd like to make a jar file that will export to a folder containing the files as such:
projectName\projectName.jar
projectName\resources
projectName\lib <--- this includes javax.mail.jar from C:\Program Files\JavaMail
If someone could please explain this (with a fair amount of detail) that would be greatly appreciated.
Thank you for your time.
|
|
|
Re: Clean & Build in eclipse [message #1273414 is a reply to message #1272909] |
Wed, 19 March 2014 21:43  |
Eclipse User |
|
|
|
On 03/19/2014 07:00 AM, Alex G wrote:
> Hello, I've finally swapped over to eclipse seriously but am confused on
> how to get a neat distribution directory. In Netbeans, I jumped a couple
> of hoops in order to get my distribution folder to include a README and
> resources folder. I'd like to simulate this exact behavior in eclipse.
> Why not include them as a resource in the jar file? The hassle of extra
> code for making the resources writable during testing.
> Currently my project contains the folders:
> bin, src, resources along with the other necessities
> I'd like to make a jar file that will export to a folder containing the
> files as such:
> projectName\projectName.jar
> projectName\resources
> projectName\lib <--- this includes javax.mail.jar from
> C:\Program Files\JavaMail
>
> If someone could please explain this (with a fair amount of detail) that
> would be greatly appreciated.
>
> Thank you for your time.
Typically this sort of thing is written using ant, Maven, etc. That's
why it's not completely obvious from the workbench user interface. You
can probably also pull it off using File -> Export -> Java -> JAR File
or Runnable JAR File.
Walk one of those paths and come back with more specific questions.
We'll be glad to help.
Cheers
|
|
|
Powered by
FUDForum. Page generated in 0.08684 seconds