Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [pde-ui-dev] plugin classpath ...

TG,

The example given in the RCP book states that, on the MANIFEST.MF
Bundle-ClassPath entry, you can replace "jdbc.jar" with
"external:$JDBC_HOME$/drivers/jdbc.jar", where JDBC_HOME is either an
environment variable or a system property. Unfortunately it won't work
with JDT classpath variables - anyway these are set too late for the
bundle resolver.

If the gwt.jar only needs to be used from one plugin then you could
just create your own URLClassLoader in order to load classes from it.
Those classes won't be exportable to other bundles, though.

Regards
Neil



On 7/26/06, TG. <techieguy@xxxxxxxxx> wrote:
Neil,

     I'm developing a plugin for Google Web Toolkit and I can't
redistribute gwt's jar files due to license restriction. The user will
download it from Google's site and set the GWT_HOME classpath variable
in his Eclipse and I'll can obtain the jar file's absolute location
thru that variable. Since I get the actual location only during
runtime, I can't put it in the manifest file. Is there a way we can
programmatically modify the classpath?

 - TG.
--
www.googlipse.com
An Eclipse plugin for Google Web Toolkit (GWT)

On 7/26/06, Neil Bartlett <neil@xxxxxxxxxxxxxx> wrote:
> Hi TG,
>
> In general the answer is "don't". Decoupling the metadata of a plugin
> from its physical location can be problematic and should be avoided
> wherever possible.
>
> Having said that, the Equinox implementation recognizes that this is
> not always possible, for example where a JAR such as a JDBC driver
> must be shared with another application, or if that JAR cannot be
> moved or modified either for technical or license reasons. In that
> case you can import it using the "external:" modifier.
>
> For details see section 20.4 (Bundling by Reference) in the RCP book,
> or this post on EclipseZone:
> http://www.eclipsezone.com/eclipse/forums/t63085.html
>
> Kind regards,
> Neil
>
> On 7/26/06, TG. <techieguy@xxxxxxxxx> wrote:
> > Hi,
> >
> >        How do I add a jar file in the user's system (either thru full
> > path or thru classpath variable) to the classpath of my plugin?
> >
> > TG.
> >
> > --
> > www.googlipse.com
> > An Eclipse plugin for Google Web Toolkit (GWT)
> > _______________________________________________
> > pde-ui-dev mailing list
> > pde-ui-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/pde-ui-dev
> >
>
>
> --
> Neil Bartlett
> Senior Technical Consultant, Integility Ltd
> Tel: +44 (0) 20 7043 8328
> Fax: +44 (0) 20 7043 8329
>
> LinkedIn Profile: https://www.linkedin.com/in/neilbartlett
> _______________________________________________
> pde-ui-dev mailing list
> pde-ui-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/pde-ui-dev
>
_______________________________________________
pde-ui-dev mailing list
pde-ui-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-ui-dev



--
Neil Bartlett
Senior Technical Consultant, Integility Ltd
Tel: +44 (0) 20 7043 8328
Fax: +44 (0) 20 7043 8329

LinkedIn Profile: https://www.linkedin.com/in/neilbartlett


Back to the top