Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Clean & Build in eclipse
Clean & Build in eclipse [message #1272909] Tue, 18 March 2014 23:36 Go to next message
Alex G is currently offline Alex G
Messages: 1
Registered: March 2014
Junior Member
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 &amp; Build in eclipse [message #1273414 is a reply to message #1272909] Wed, 19 March 2014 21:43 Go to previous message
Russell Bateman is currently offline Russell Bateman
Messages: 3133
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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
Previous Topic:Trying to work on multiple projects
Next Topic:derby integration
Goto Forum:
  


Current Time: Tue Jul 29 08:46:50 EDT 2014

Powered by FUDForum. Page generated in 0.15364 seconds