Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » EclipseClassLoader info
EclipseClassLoader info [message #173493] Mon, 16 August 2004 16:29 Go to next message
Eclipse UserFriend
Does anyone know anything about the "EclipseClassLoader" class. A plugin
I am developing dies in the various release candidates, apparently because
the class loader returned by Plugin.class.getClassLoader() is now an
EclipseClassLoader instead of a URLClassLoader.

For whatever the reasons my getResource() calls are returning zilch and my
attempts to cast the returned ClassLoader to an EclipseClassLoader die
from some ambiguous red event message.

Organize imports finds the EclipseClassLoader import but things die in the
debug/runtime workbench.


Any thoughts???
Re: EclipseClassLoader info [message #173528 is a reply to message #173493] Mon, 16 August 2004 19:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

Why do you need to cast it? That is an internal class and can change at
any time.


--
Thanks, Rich Kulp

Re: EclipseClassLoader info [message #173540 is a reply to message #173493] Tue, 17 August 2004 05:53 Go to previous message
Eclipse UserFriend
Originally posted by: sptf.vfst.de

Hi Michael,

we recently switched from JDT to PDE (Eclipse RCP) and faced some issues,
which might be similar to yours. We highly recommend pp.54 and 55 of
"Contributing to Eclipse" which explain very clearly how Eclipse finds
classes at runtime.

The problem actually is not with the type of class loader but with the
class loader class paths and with the hierarchy of the class loaders. One
possible reason for your problem is that you might be searching classes or
resources located on the system class path. As the system class loader is
not part of the Eclipse hierarchy of class loaders, you'll never find them.

Hope this might be pointing you in the right direction.

Cheers
Thorsten
Previous Topic:Notification of nature additions/removals
Next Topic:NS_InitEmbedding error when running SWT Browser example on Linux
Goto Forum:
  


Current Time: Fri May 09 12:12:00 EDT 2025

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

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

Back to the top