<Swing Dev> CSS$LengthUnit not found when running with my own AWT implementation

Roman Kennke roman at kennke.org
Fri Jul 1 21:28:39 UTC 2011


Hi Clemens,

> I am working on a Caciocavallo-based AWT implementation which
> (hopefully) will allow to run Swing-Applications server-side but
> re-direct rendering/events to a Canvas5 capable browser.
> 
> However I have troubles with Swing elements which contain HTML,
> initiating those widgets fails with a NoClassDefFoundError, although I
> can see the class is in rt.jar - and it works when e.g. using the X11
> AWT implementation.
> 
> Any ideas what could cause this? Is there some black-magic involved here? ;)


Are there any preceding exceptions? Most often this is caused by
something that goes wrong while loading the class, which results in a
NoClassDefFoundError. The first time this happens, it should show the
root cause, then that class is flagged as error state and any access to
this class results in more NoClassDefFoundErrors, but without the root
cause IIRC.

Roman




More information about the swing-dev mailing list