Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Clean & Build in eclipse
Clean & Build in eclipse [message #1272909] Wed, 19 March 2014 03:36 Go to next message
Alex G is currently offline Alex GFriend
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] Thu, 20 March 2014 01:43 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
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:Eclipse Not Recognizing PyDev Addition
Goto Forum:
  


Current Time: Thu Apr 25 19:23:02 GMT 2024

Powered by FUDForum. Page generated in 0.07349 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top