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

Reply via email to