My class is in the same bundle as e4 photo project. I have looked at the model workbench. It seems there are more DefaultClassLoaders of OSGi are created.
Best regards Yves YANG Soyatec - Eclipse OutSourcing & XAML for java http://www.soyatec.com Tel: +33 1 60 13 06 67 Mobile: +33 6 20 74 39 45 Fax: +33 9 58 07 06 67 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Tom Schindl Sent: Sunday, January 11, 2009 7:16 PM To: E4 Project developer mailing list Subject: Re: [e4-dev] Model workbench + XWT for e4 photo demo Hi Yves, Which bundle is the "Libary"-Class in and which one is your "MyClass"-Class? Do they have a dependency? If not this looks like standard OSGi-Behavior not? If the the bundle has no dependency on the bundle the class is in you can't load it using Class.forName(). If you know the bundle defining the class you could potentially use Platform.getBundle("").loadClass("") but that's really a hack another not very clean work-around is to use Buddy-ClassLoading. Tom Yves YANG schrieb: > Hi all, > > > > I have looked at the possible integration of XWT with e4 photo demo. I > have noticed a problem that blocks this integration. In the Library > class, it is not possible to load a class dynamically. > > Class.forName("MyClass"); > > > > MyClass is defined in the project e4 phoho. Can someone help this issue? > > > > Best regards > > Yves YANG > > Soyatec - Eclipse OutSourcing & XAML for java > > http://www.soyatec.com <http://www.soyatec.com/> > > Tel: +33 1 60 13 06 67 > > Mobile: +33 6 20 74 39 45 > > Fax: +33 9 58 07 06 67 > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > e4-dev mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/e4-dev -- B e s t S o l u t i o n . a t EDV Systemhaus GmbH ------------------------------------------------------------------------ tom schindl leiter softwareentwicklung/CSO ------------------------------------------------------------------------ eduard-bodem-gasse 8/3 A-6020 innsbruck phone ++43 512 935834 _______________________________________________ e4-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/e4-dev _______________________________________________ e4-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/e4-dev
