Skip to main content



      Home
Home » Newcomers » Newcomers » Clean & Build in eclipse
Clean & Build in eclipse [message #1272909] Tue, 18 March 2014 23:36 Go to next message
Eclipse UserFriend
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
Eclipse UserFriend
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: Mon Jun 23 12:33:52 EDT 2025

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

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

Back to the top