Eclipse and cmdline -classpath [message #262760] |
Tue, 20 July 2004 18:23  |
Eclipse User |
|
|
|
We have written a number of plugins which have dependencies on external
jar files - files containing Eclipse-agnostic classes. Since these jars
contain Eclipse-agnostic code, they should not be required to live in the
Eclipse directory structure in order for Eclipse to access them.
I have written on this topic before and have been assured that the
plugin.xml architecture will not support classloading of jars from an
arbitrary location.
So. I would have thought that by invoking Eclipse with '-vmargs
-classpath <classpath>' would have made the relevant classloaders aware of
the Eclipse-agnostic jars. This appears not to be the case, however. As
soon as I attempt to use a plugin which relies on these jars, I get an
error stating that the activator for that plugin is invalid.
Help.
--dave
P.S. I have further noticed that when I add my plugins to Eclipse via the
Install/Update manager, osgi manifest files are created for each file. I
don't know whether this is part of my problem or not, but it's a little
disturbing that I have made a conscious decision not to write manifest
files for my plugins, yet they appear anyway.
|
|
|
|
Re: Eclipse and cmdline -classpath [message #262885 is a reply to message #262873] |
Wed, 21 July 2004 10:17  |
Eclipse User |
|
|
|
Rich Kulp wrote:
> The -classpath is not used by the plugin classloaders. They only use
> classloaders provided by the plugin's themselves.
> They must be in plugins.
Thank you for your response. However, I would like to raise an objection
that I find this completely unacceptable.
This model places Eclipse at the center of the universe, and requires any
non-Eclipse application which wants to interact with Eclipse to base its
architecture on the Eclipse architecture. Sorry, but you guys are the new
kid on the block, and it is unreasonable to expect all other applications
to bend to your design.
Don't get me wrong; Eclipse is a very powerful tooling platform, and
provides a lot of great features. That's why we want to use it. But
other than simple obstinance, I cannot fathom a single reason why Eclipse
does not provide a mechanism to load classes from arbitrary locations.
Please see <a
href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=58281">bug 58281</a>.
|
|
|
Powered by
FUDForum. Page generated in 0.06487 seconds