Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » <library name="?">
<library name="?"> [message #227012] Mon, 12 April 2004 16:35 Go to next message
David Bailey is currently offline David BaileyFriend
Messages: 45
Registered: July 2009
Member
I want to specify runtime libraries in my plugin.xml which do not reside
in the plugin directory. For example, I want to be able to specify a
<library> tag in a manner similar to the following:

<library name="C:\\MyProjects\\MyLibraries\\library.jar">

I realize that this isn't portable, so I've tried specifying a URL:

<library name="file:C:/MyProjects/MyLibraries/library.jar">

and ideally, of course, most of the path should be hidden behind a
variable of some sort:

<library name="MY_ECLIPSE_LIBRARIES/library.jar">

I've tried both of the first two mechanisms, along with some variants,
without success. Can someone please tell me whether it is possible to
specify runtime libraries which reside outside the plugin directory, and
if so, how to do it?
Re: <library name="?"> [message #227264 is a reply to message #227012] Tue, 13 April 2004 00:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pascal.ibm.canada

This is not supported.
library indicates a path relative to the plugin folder.

PaScaL

David Bailey wrote:
> I want to specify runtime libraries in my plugin.xml which do not reside
> in the plugin directory. For example, I want to be able to specify a
> <library> tag in a manner similar to the following:
>
> <library name="C:\\MyProjects\\MyLibraries\\library.jar">
>
> I realize that this isn't portable, so I've tried specifying a URL:
>
> <library name="file:C:/MyProjects/MyLibraries/library.jar">
>
> and ideally, of course, most of the path should be hidden behind a
> variable of some sort:
>
> <library name="MY_ECLIPSE_LIBRARIES/library.jar">
>
> I've tried both of the first two mechanisms, along with some variants,
> without success. Can someone please tell me whether it is possible to
> specify runtime libraries which reside outside the plugin directory, and
> if so, how to do it?
>
Re: <library name="?"> [message #229072 is a reply to message #227264] Thu, 15 April 2004 03:54 Go to previous message
Nico Guba is currently offline Nico GubaFriend
Messages: 3
Registered: July 2009
Junior Member
"Pascal Rapicault" <pascal@ibm.canada> wrote in message
news:c5fbnn$htt$1@eclipse.org...
> This is not supported.
> library indicates a path relative to the plugin folder.

Hmm, I'd be happy if that would just work (Eclipse 3.0M8). I cannot get the
plugin to see the library althought it is in the folder ;(

<runtime>

<library name="smtpkernel.jar">

<export name="*"/>

</library>

<library name="lib/mysql-connector-java-3.1.1-alpha-bin.jar"
type="resource">

<export name="*"/>

</library>

</runtime>

---

java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver

at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader
..java:348)

at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(Abstra
ctClassLoader.java:116)

at java.lang.ClassLoader.loadClass(Unknown Source)

---

This has been causing me a headache for days now. Any ideas what I forgot?

Hope this is not a bug...


> PaScaL
>
> David Bailey wrote:
> > I want to specify runtime libraries in my plugin.xml which do not reside
> > in the plugin directory. For example, I want to be able to specify a
> > <library> tag in a manner similar to the following:
> >
> > <library name="C:\\MyProjects\\MyLibraries\\library.jar">
> >
> > I realize that this isn't portable, so I've tried specifying a URL:
> >
> > <library name="file:C:/MyProjects/MyLibraries/library.jar">
> >
> > and ideally, of course, most of the path should be hidden behind a
> > variable of some sort:
> >
> > <library name="MY_ECLIPSE_LIBRARIES/library.jar">
> >
> > I've tried both of the first two mechanisms, along with some variants,
> > without success. Can someone please tell me whether it is possible to
> > specify runtime libraries which reside outside the plugin directory, and
> > if so, how to do it?
> >
Previous Topic:hide view in layout
Next Topic:Branding in m8
Goto Forum:
  


Current Time: Wed Dec 17 23:23:37 GMT 2014

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

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