Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Classloading in Eclipse
Classloading in Eclipse [message #273180] Fri, 01 October 2004 02:28 Go to next message
Eclipse UserFriend
Hi!

Is there somewhere a tutorial or any other help / documentation on
classloading in eclipse?

Thanks


Bernd


--
Mit freundlichen Gr
Re: Classloading in Eclipse [message #273353 is a reply to message #273180] Mon, 04 October 2004 19:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pascal.ibm.canada

Not really.
What are you interested in ?

PaScaL

Bernd Kolb wrote:
> Hi!
>
> Is there somewhere a tutorial or any other help / documentation on
> classloading in eclipse?
>
> Thanks
>
>
> Bernd
>
>
Re: Classloading in Eclipse [message #273437 is a reply to message #273353] Wed, 06 October 2004 04:44 Go to previous messageGo to next message
Eclipse UserFriend
The problem is the following:

I have a plugin a. It contains only libs which are required by several other
plugins. One of the libs tries to laod a class via reflection. (The class
must be specified in a xml-file.) The class which should be loaded is in
plugin b which has a dependency to a. Now I'll get a ClassNotFound or sth
like that when the code in the lib in plugin a is executed. Obviously!.
I know that it is a cyclic dependency, but I do not see an other change
because I do not want to add the library to all the other plugins which
require it.

Thanks

Bernd



"Pascal Rapicault" <pascal@ibm.canada> schrieb im Newsbeitrag
news:cjskeg$dqd$1@eclipse.org...
> Not really.
> What are you interested in ?
>
> PaScaL
>
> Bernd Kolb wrote:
> > Hi!
> >
> > Is there somewhere a tutorial or any other help / documentation on
> > classloading in eclipse?
> >
> > Thanks
> >
> >
> > Bernd
> >
> >
Re: Classloading in Eclipse [message #273448 is a reply to message #273437] Wed, 06 October 2004 10:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: igorf.ca.ibm.com

Bernd,

Can you be a little bit more specific about libraries, xml-files and
error message that you get? I have code that uses ClassLoader.loadClass
to load classes from required plugins and it works just fine. There is
however a problem with config files stored under META-INF directory
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=74664) so I wonder if
this is what you actually see.

Bernd Kolb wrote:

> The problem is the following:
>
> I have a plugin a. It contains only libs which are required by several other
> plugins. One of the libs tries to laod a class via reflection. (The class
> must be specified in a xml-file.) The class which should be loaded is in
> plugin b which has a dependency to a. Now I'll get a ClassNotFound or sth
> like that when the code in the lib in plugin a is executed. Obviously!.
> I know that it is a cyclic dependency, but I do not see an other change
> because I do not want to add the library to all the other plugins which
> require it.
>
> Thanks
>
> Bernd
>
>
>
> "Pascal Rapicault" <pascal@ibm.canada> schrieb im Newsbeitrag
> news:cjskeg$dqd$1@eclipse.org...
>
>>Not really.
>>What are you interested in ?
>>
>>PaScaL
>>
>>Bernd Kolb wrote:
>>
>>>Hi!
>>>
>>>Is there somewhere a tutorial or any other help / documentation on
>>>classloading in eclipse?
>>>
>>>Thanks
>>>
>>>
>>>Bernd
>>>
>>>
>
>
>
Re: Classloading in Eclipse [message #273450 is a reply to message #273448] Wed, 06 October 2004 10:46 Go to previous messageGo to next message
Eclipse UserFriend
Hi!

The libs are out of a open source project. In one lib a ant-task should be
started. this ant-task gets itsconfigurationdetails from a xml-file. It is
not the bug described at 74664.


"Igor Fedorenko" <igorf@ca.ibm.com> schrieb im Newsbeitrag
news:ck0uo3$4jc$1@eclipse.org...
> Bernd,
>
> Can you be a little bit more specific about libraries, xml-files and
> error message that you get? I have code that uses ClassLoader.loadClass
> to load classes from required plugins and it works just fine. There is
> however a problem with config files stored under META-INF directory
> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=74664) so I wonder if
> this is what you actually see.
>
> Bernd Kolb wrote:
>
> > The problem is the following:
> >
> > I have a plugin a. It contains only libs which are required by several
other
> > plugins. One of the libs tries to laod a class via reflection. (The
class
> > must be specified in a xml-file.) The class which should be loaded is in
> > plugin b which has a dependency to a. Now I'll get a ClassNotFound or
sth
> > like that when the code in the lib in plugin a is executed. Obviously!.
> > I know that it is a cyclic dependency, but I do not see an other change
> > because I do not want to add the library to all the other plugins which
> > require it.
> >
> > Thanks
> >
> > Bernd
> >
> >
> >
> > "Pascal Rapicault" <pascal@ibm.canada> schrieb im Newsbeitrag
> > news:cjskeg$dqd$1@eclipse.org...
> >
> >>Not really.
> >>What are you interested in ?
> >>
> >>PaScaL
> >>
> >>Bernd Kolb wrote:
> >>
> >>>Hi!
> >>>
> >>>Is there somewhere a tutorial or any other help / documentation on
> >>>classloading in eclipse?
> >>>
> >>>Thanks
> >>>
> >>>
> >>>Bernd
> >>>
> >>>
> >
> >
> >
Re: Classloading in Eclipse [message #273502 is a reply to message #273450] Wed, 06 October 2004 18:51 Go to previous message
Eclipse UserFriend
Originally posted by: ifedorenko.rogers.com

Unfortunately, I have not seen this problem. The best advice I can give
you is to prepare a small, self-contained example that demonstrates the
problem. You then be able to either debug this problem yourself or open
a bug report if you'll be convinced that this is Eclipse's fault.

Bernd Kolb wrote:
> Hi!
>
> The libs are out of a open source project. In one lib a ant-task should be
> started. this ant-task gets itsconfigurationdetails from a xml-file. It is
> not the bug described at 74664.
>
>
> "Igor Fedorenko" <igorf@ca.ibm.com> schrieb im Newsbeitrag
> news:ck0uo3$4jc$1@eclipse.org...
>
>>Bernd,
>>
>>Can you be a little bit more specific about libraries, xml-files and
>>error message that you get? I have code that uses ClassLoader.loadClass
>>to load classes from required plugins and it works just fine. There is
>>however a problem with config files stored under META-INF directory
>>(https://bugs.eclipse.org/bugs/show_bug.cgi?id=74664) so I wonder if
>>this is what you actually see.
>>
>>Bernd Kolb wrote:
>>
>>
>>>The problem is the following:
>>>
>>>I have a plugin a. It contains only libs which are required by several
>
> other
>
>>>plugins. One of the libs tries to laod a class via reflection. (The
>
> class
>
>>>must be specified in a xml-file.) The class which should be loaded is in
>>>plugin b which has a dependency to a. Now I'll get a ClassNotFound or
>
> sth
>
>>>like that when the code in the lib in plugin a is executed. Obviously!.
>>>I know that it is a cyclic dependency, but I do not see an other change
>>>because I do not want to add the library to all the other plugins which
>>>require it.
>>>
>>>Thanks
>>>
>>>Bernd
>>>
>>>
>>>
>>>"Pascal Rapicault" <pascal@ibm.canada> schrieb im Newsbeitrag
>>>news:cjskeg$dqd$1@eclipse.org...
>>>
>>>
>>>>Not really.
>>>>What are you interested in ?
>>>>
>>>>PaScaL
>>>>
>>>>Bernd Kolb wrote:
>>>>
>>>>
>>>>>Hi!
>>>>>
>>>>>Is there somewhere a tutorial or any other help / documentation on
>>>>>classloading in eclipse?
>>>>>
>>>>>Thanks
>>>>>
>>>>>
>>>>>Bernd
>>>>>
>>>>>
>>>
>>>
>>>
>
>
Previous Topic:Generating build.xml files for a feature at command line? (2nd post attempt)
Next Topic:No suitable Log constructor ...
Goto Forum:
  


Current Time: Mon May 12 13:12:03 EDT 2025

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

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

Back to the top