Skip to main content



      Home
Home » Newcomers » Newcomers » Building jars.
Building jars. [message #114288] Thu, 03 November 2005 04:53 Go to next message
Eclipse UserFriend
Originally posted by: tony.cruickshank.vicorp.com

Hello There,

I've just started using Eclipse as my Java IDE, having previously used
JBuilder for many years, and there seems to be a glaring omission. I need
to create a jar file from my classes, and I'd like it to be done
automatically
every time I do a build. However, currently after building the project I
have
to then manually Export the classes which, to be honest, is a right pain in
the <insert favourite anatomical part here>.

Is there a plug in that provides this functionality. Ideally, I should be
able to do something like

File -> New -> Jar

and add this to my project.

Thanks in advance.

Tony.
Re: Building jars. [message #114446 is a reply to message #114288] Thu, 03 November 2005 11:32 Go to previous messageGo to next message
Eclipse UserFriend
You can create an external tool builder which invokes an Ant buildfile to
JAR up the classes.
The builder can be configured to be invoked every time your build

See the Eclipse Help>Workbench User Guide>GettingStarted>Ant & external
tools tutorial>Use cases for Ant in Eclipse>Ant buildfiles as project
builders

HTH
Darins

"Tony Cruickshank" <tony.cruickshank@vicorp.com> wrote in message
news:e754172ef660a697c5eb0891a96b23db$1@www.eclipse.org...
> Hello There,
>
> I've just started using Eclipse as my Java IDE, having previously used
> JBuilder for many years, and there seems to be a glaring omission. I need
> to create a jar file from my classes, and I'd like it to be done
> automatically every time I do a build. However, currently after building
> the project I have
> to then manually Export the classes which, to be honest, is a right pain
> in
> the <insert favourite anatomical part here>.
>
> Is there a plug in that provides this functionality. Ideally, I should be
> able to do something like
> File -> New -> Jar
>
> and add this to my project.
>
> Thanks in advance.
>
> Tony.
>
Re: Building jars. [message #114730 is a reply to message #114446] Fri, 04 November 2005 09:44 Go to previous message
Eclipse UserFriend
Originally posted by: tony.cruickshank.vicorp.com

Hello There,

Thanks for replying. I'd seen that I could write an ant task to create
the
jar, but I was hoping that Eclipse would support this natively, so to
speak.
I mean, what else do you do with a Java class except put it in a jar to
use?
And given that, why doesn't Eclipse have File -> New -> Jar along with all
the
other possibilities.

Just seems strange that every other IDE I've looked at has the ability
to
add jars to a project and Eclipse doesn't.

Anyway, thanks for you help.

Cheers,
Tony.
Previous Topic:Netbeans Keyboard Shortcuts in Eclipse
Next Topic:attaching javadoc
Goto Forum:
  


Current Time: Tue Jul 22 00:41:58 EDT 2025

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

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

Back to the top