[kaffe] unable to load AWT

Blake Meike bmeike at d2tech.com
Wed Feb 7 20:19:02 PST 2007


Venu,
   I'm also new to this, so I probably can't help much.  I can say that 
I had exactly this problem when I built Kaffe from CVS.  On the other 
hand, in exactly the same environment, I was able to build the 1.1.7 
source and generate a JVM that did not have this problem.  My conclusion 
is that it was introduced recently.

Blake Meike


venu kanumuri wrote:
> Hi All,
> 
> I am a new guy to Java environment. I installed kaffe-1.1.7 and GNU
> classpath-0.91 on my machine (arm-linux).
> I successfully ran "Hello World" Program. when I try to run Simple Applet
> program, It is showing the following error
> Message
> 
> 
> java.awt.AWTError: Cannot load AWT toolkit: 
> gnu.java.awt.peer.gtk.GtkToolkit
>   at java.lang.VMThrowable.fillInStackTrace (VMThrowable.java:native)
>   at java.lang.VMThrowable.fillInStackTrace (VMThrowable.java:79)
>   at java.lang.Throwable.fillInStackTrace (Throwable.java:498)
>   at java.lang.Throwable.<init> (Throwable.java:159)
>   at java.lang.Error.<init> (Error.java:81)
>   at java.awt.AWTError.<init> (AWTError.java:62)
>   at java.awt.Toolkit.getDefaultToolkit (Toolkit.java:546)
>   at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment (
> GraphicsEnvironment.java:103)
>   at java.awt.Window.<init> (Window.java:161)
>   at java.awt.Frame.<init> (Frame.java:245)
>   at WidgetsDemo.<init> (WidgetsDemo.java:84)
>   at WidgetsDemo.main (WidgetsDemo.java:318)
> caused by java/lang/ExceptionInInitializerError:
>   at java.lang.VMClassLoader.loadClass (VMClassLoader.java:native)
>   at java.lang.Class.forName (Class.java:212)
>   at java.lang.Class.forName (Class.java:163)
>   at java.awt.Toolkit.getDefaultToolkit (Toolkit.java:532)
>   at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment (
> GraphicsEnvironment.java:103)
>   at java.awt.Window.<init> (Window.java:161)
>   at java.awt.Frame.<init> (Frame.java:245)
>   at WidgetsDemo.<init> (WidgetsDemo.java:84)
>   at WidgetsDemo.main (WidgetsDemo.java:318)
> caused by java/lang/NullPointerException:
>   at java.lang.String.regionMatches (String.java:511)
>   at java.lang.String.startsWith (String.java:573)
>   at java.lang.VMClassLoader.getResources (VMClassLoader.java:219)
>   at java.lang.VMClassLoader.getResource (VMClassLoader.java:159)
>   at java.lang.ClassLoader.getResource (ClassLoader.java:603)
>   at java.lang.ClassLoader.getResourceAsStream (ClassLoader.java:728)
>   at java.lang.InheritableThreadLocal.newChildThread (
> InheritableThreadLocal.java:99)
>   at java.lang.Thread.<init> (Thread.java:351)
>   at java.lang.Thread.<init> (Thread.java:220)
>   at gnu.java.awt.peer.gtk.GtkToolkit$1.<init> (GtkToolkit.java:126)
>   at gnu.java.awt.peer.gtk.GtkToolkit.<clinit> (GtkToolkit.java:126)
>   at java.lang.VMClassLoader.loadClass (VMClassLoader.java:native)
>   at java.lang.Class.forName (Class.java:212)
>   at java.lang.Class.forName (Class.java:163)
>   at java.awt.Toolkit.getDefaultToolkit (Toolkit.java:532)
>   at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment (
> GraphicsEnvironment.java:103)
>   at java.awt.Window.<init> (Window.java:161)
>   at java.awt.Frame.<init> (Frame.java:245)
>   at WidgetsDemo.<init> (WidgetsDemo.java:84)
>   at WidgetsDemo.main (WidgetsDemo.java:318)
> caused by: java.lang.ExceptionInInitializerError
>   at java.lang.VMClassLoader.loadClass (VMClassLoader.java:native)
>   at java.lang.Class.forName (Class.java:212)
>   at java.lang.Class.forName (Class.java:163)
>   at java.awt.Toolkit.getDefaultToolkit (Toolkit.java:532)
>   at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment (
> GraphicsEnvironment.java:103)
>   at java.awt.Window.<init> (Window.java:161)
>   at java.awt.Frame.<init> (Frame.java:245)
>   at WidgetsDemo.<init> (WidgetsDemo.java:84)
>   at WidgetsDemo.main (WidgetsDemo.java:318)
> caused by java/lang/NullPointerException:
>   at java.lang.String.regionMatches (String.java:511)
>   at java.lang.String.startsWith (String.java:573)
>   at java.lang.VMClassLoader.getResources (VMClassLoader.java:219)
>   at java.lang.VMClassLoader.getResource (VMClassLoader.java:159)
>   at java.lang.ClassLoader.getResource (ClassLoader.java:603)
>   at java.lang.ClassLoader.getResourceAsStream (ClassLoader.java:728)
>   at java.lang.InheritableThreadLocal.newChildThread (
> InheritableThreadLocal.java:99)
>   at java.lang.Thread.<init> (Thread.java:351)
>   at java.lang.Thread.<init> (Thread.java:220)
>   at gnu.java.awt.peer.gtk.GtkToolkit$1.<init> (GtkToolkit.java:126)
>   at gnu.java.awt.peer.gtk.GtkToolkit.<clinit> (GtkToolkit.java:126)
>   at java.lang.VMClassLoader.loadClass (VMClassLoader.java:native)
>   at java.lang.Class.forName (Class.java:212)
>   at java.lang.Class.forName (Class.java:163)
>   at java.awt.Toolkit.getDefaultToolkit (Toolkit.java:532)
>   at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment (
> GraphicsEnvironment.java:103)
>   at java.awt.Window.<init> (Window.java:161)
>   at java.awt.Frame.<init> (Frame.java:245)
>   at WidgetsDemo.<init> (WidgetsDemo.java:84)
>   at WidgetsDemo.main (WidgetsDemo.java:318)
> caused by: java.lang.NullPointerException
>   at java.lang.String.regionMatches (String.java:511)
>   at java.lang.String.startsWith (String.java:573)
>   at java.lang.VMClassLoader.getResources (VMClassLoader.java:219)
>   at java.lang.VMClassLoader.getResource (VMClassLoader.java:159)
>   at java.lang.ClassLoader.getResource (ClassLoader.java:603)
>   at java.lang.ClassLoader.getResourceAsStream (ClassLoader.java:728)
>   at java.lang.InheritableThreadLocal.newChildThread (
> InheritableThreadLocal.java:99)
>   at java.lang.Thread.<init> (Thread.java:351)
>   at java.lang.Thread.<init> (Thread.java:220)
>   at gnu.java.awt.peer.gtk.GtkToolkit$1.<init> (GtkToolkit.java:126)
>   at gnu.java.awt.peer.gtk.GtkToolkit.<clinit> (GtkToolkit.java:126)
>   at java.lang.VMClassLoader.loadClass (VMClassLoader.java:native)
>   at java.lang.Class.forName (Class.java:212)
>   at java.lang.Class.forName (Class.java:163)
>   at java.awt.Toolkit.getDefaultToolkit (Toolkit.java:532)
>   at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment (
> GraphicsEnvironment.java:103)
>   at java.awt.Window.<init> (Window.java:161)
>   at java.awt.Frame.<init> (Frame.java:245)
>   at WidgetsDemo.<init> (WidgetsDemo.java:84)
>   at WidgetsDemo.main (WidgetsDemo.java:318)
> 
> 
> I have no clue about what's happening. I have Gtk+ library installed and i
> use icewm as window manager
> Please help me
> 
> Thanks in advance
> 
> Venu
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> kaffe mailing list
> kaffe at kaffe.org
> http://kaffe.org/cgi-bin/mailman/listinfo/kaffe





More information about the kaffe mailing list