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