Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Creating all jars for export
Creating all jars for export [message #687630] Wed, 22 June 2011 21:48 Go to next message
Roy Epperson is currently offline Roy EppersonFriend
Messages: 7
Registered: April 2011
Location: Santa Barbara, Ca
Junior Member
Is there an plugin, ant script, or ?? to create and export jars for
Eclipse/Java? I have a workspace containing numerous "library" projects
and application projects which I just imported into Eclipse.

I would like to select an application project and export it and all the
jars in the workspace it uses at the same time.

For there, I can either distribute them as a group or used Proguard to
compact the jar(s). In my previous environment, Proguard reduced the
total application size by 50% or better.

I could always develop a plugin but would prefer not.
Re: Creating all jars for export [message #687677 is a reply to message #687630] Thu, 23 June 2011 01:55 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2011.06.22 15:48, Roy Epperson wrote:
> Is there an plugin, ant script, or ?? to create and export jars for
> Eclipse/Java? I have a workspace containing numerous "library" projects
> and application projects which I just imported into Eclipse.
>
> I would like to select an application project and export it and all the
> jars in the workspace it uses at the same time.
>
> For there, I can either distribute them as a group or used Proguard to
> compact the jar(s). In my previous environment, Proguard reduced the
> total application size by 50% or better.
>
> I could always develop a plugin but would prefer not.

Are you willing to write your own ant script? If so, you might peruse
this document to get started. It also contains an ant target that jars
up classes out of the project.

http://www.javahotchocolate.com/tutorials/apache-ant.html
Re: Creating all jars for export [message #687730 is a reply to message #687630] Thu, 23 June 2011 05:03 Go to previous messageGo to next message
Michael Pellaton is currently offline Michael PellatonFriend
Messages: 289
Registered: July 2009
Senior Member
Hi

If you use Maven as build tool, M2Eclipse is your friend.

Michael
Re: Creating all jars for export [message #689156 is a reply to message #687677] Mon, 27 June 2011 01:27 Go to previous messageGo to next message
Roy Epperson is currently offline Roy EppersonFriend
Messages: 7
Registered: April 2011
Location: Santa Barbara, Ca
Junior Member
On 6/22/2011 6:55 PM, Russell Bateman wrote:
> Are you willing to write your own ant script? If so, you might peruse
> this document to get started. It also contains an ant target that jars
> up classes out of the project.
>
> http://www.javahotchocolate.com/tutorials/apache-ant.html
Russel,
Thanks for your pointer to your discussion of Ant and Eclipse. It's a
great starting point. I've written a build system using Ant for my old
environment before I moved to Eclipse/Java.

What are you using for version control?

Roy
Re: Creating all jars for export [message #689332 is a reply to message #689156] Mon, 27 June 2011 12:46 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 26-Jun-11 19:27, Roy Epperson wrote:
> On 6/22/2011 6:55 PM, Russell Bateman wrote:
>> Are you willing to write your own ant script? If so, you might peruse
>> this document to get started. It also contains an ant target that jars
>> up classes out of the project.
>>
>> http://www.javahotchocolate.com/tutorials/apache-ant.html
> Russel,
> Thanks for your pointer to your discussion of Ant and Eclipse. It's a
> great starting point. I've written a build system using Ant for my old
> environment before I moved to Eclipse/Java.
>
> What are you using for version control?
>
> Roy

I've used myriad tools over my career, but with Eclipse, I've used
mostly Subversion. There are a couple of articles on my Java Hot
Chocolate site on Subversion and Subclipse. I've used both Subclipse and
Subversive. In my opinion, Subversive was broken a couple of years ago
and I've had more luck with Subclipse since. I like Subversion mostly
because I've used it so much.

I've also used Perforce at work and currectly also use Git there on a
new project. I do not advise using plug-ins for the latter two.

Perforce requires Mylyn which dramatically slows Eclipse launch
times--in my case on an HP 8540cw running Maverick Meerkat with 8Gb of
memory, it takes 40+ seconds as compared to 8 when I remove it.

Git isn't mature enough. Some colleagues have incurred actual lost data
attempting to run Git-Eclipse integration. There is a rough-draft
article on Git at my site.

I use Perforce and Git outside of Eclipse which isn't a big deal to me
as I'm an ancient Unix command-line guy anyway.
Previous Topic:Apache Tomcat Error
Next Topic:Using methods in Java that aren't in the class
Goto Forum:
  


Current Time: Thu Apr 18 07:52:12 GMT 2024

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

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

Back to the top