[kaffe] unable to load AWT

venu kanumuri kay.venu at gmail.com
Wed Feb 7 03:03:23 PST 2007


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://kaffe.org/pipermail/kaffe/attachments/20070207/de029312/attachment-0004.htm 


More information about the kaffe mailing list