Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Library Projects
Library Projects [message #319515] Thu, 23 August 2007 19:04 Go to next message
Steve Whatmore is currently offline Steve WhatmoreFriend
Messages: 95
Registered: July 2009
Member
Good afternoon,

How do I create a "library" project that contains say all the jar files for
a framework that can then be referenced from various other Java project and
Dyanmic Web Projects.

Is there are
Re: Library Projects [message #319522 is a reply to message #319515] Thu, 23 August 2007 20:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Jim.Cooper.sas.com

Steve Whatmore wrote:
> Good afternoon,
>
> How do I create a "library" project that contains say all the jar files for
> a framework that can then be referenced from various other Java project and
> Dyanmic Web Projects.

Create a plugin project, and add, for instance, a 'jars' subdir.

Then on the 'Runtime' tab in the plugin.xml, in the lower right corner,
add your jars to the 'Classpath' box.

Once they're added, add the packages you want to expose to other plugins
to the 'Exported Packages' box.

If you have any actual code in your plugin, be sure to add '.' to the
'Classpath' box, or it won't be seen by Eclipse (as I found out through
trial & error).
Re: Library Projects [message #319533 is a reply to message #319515] Fri, 24 August 2007 03:48 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

Steve Whatmore wrote:
> Good afternoon,
>
> How do I create a "library" project that contains say all the jar files for
> a framework that can then be referenced from various other Java project and
> Dyanmic Web Projects.

There are a couple of options:
A) Define a User Library (search the Preferences dialog for "user") that
includes all the JARs. Projects can include a User Library on their
Build Path via the "Add Library..." button.

B) Create a regular Java Project that contains all the JARs (and nothing
else), includes them on its Build Path, and exports them (see the Order
and Export tab of Build Path). Then make other Projects include that
project on their Build Paths.

Option B has the benefits of easily attaching source and/or Javadoc for
the JARs that will get inherited by all projects and lauch configs that
depend on the library project, and also that it can be checked in to
source control for other developers to leverage.

Hope this helps,
Eric
Previous Topic:Virtual Tree , lazy content provider. How to add items ?
Next Topic:Poor performance in Eclipse 3.3
Goto Forum:
  


Current Time: Wed Sep 18 16:56:25 GMT 2024

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

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

Back to the top