[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit




An off the top of my head guess would be - do you have GNOME installed?

Reasoning ... GtkToolkit refers to GNOME and would be using the GNOME widgets as peers in the same manner the Motif widgets were formerly used.

- David


On Nov 2, 2006, at 5:57 AM, Clayton wrote:

Hi,

I am not so familiar with Java, and I am trying to get my brokers Java trading app working on my notebook. I am running Debian Etch with the following Java environment installed:

$ wajig list-installed | grep java
java-common
java-gcj-compat
libhsqldb-java
libjaxp1.2-java
libjline-java
libservlet2.3-java
libxalan2-java
libxerces2-java
libxt-java
openoffice.org-java-common
sun-java5-bin
sun-java5-demo
sun-java5-fonts
sun-java5-jdk
sun-java5-jre
sun-java5-plugin

When I try to invoke the app, the following happens:

s$ java -cp jts.jar:pluginsupport.jar:jcommon-1.0.0.jar:jfreechart-1.0.0.jar:jhall .jar:other.jar:rss.jar -Xmx256M jclient.LoginFrame . Exception in thread "JTS-Main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
   at java.awt.Toolkit.getDefaultToolkit(libgcj.so.70)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment (libgcj.so.70)
   at java.awt.Window.<init>(libgcj.so.70)
   at java.awt.Frame.<init>(libgcj.so.70)
   at java.awt.Frame.<init>(libgcj.so.70)
   at javax.swing.SwingUtilities$OwnerFrame.<init>(libgcj.so.70)
   at javax.swing.SwingUtilities.getOwnerFrame(libgcj.so.70)
   at javax.swing.JOptionPane.<clinit>(libgcj.so.70)
   at java.lang.Class.initializeClass(libgcj.so.70)
   at jutils.td.a(td.java:69)
   at jutils.xb.a(xb.java:105)
   at jutils.xb.b(xb.java:69)
   at jclient.LoginFrame.a(LoginFrame.java:308)
   at jclient.LoginFrame.b(LoginFrame.java:290)
   at jclient.LoginFrame.main(LoginFrame.java:448)
Caused by: java.lang.NoClassDefFoundError: gnu.java.awt.peer.gtk.GtkToolkit
   at java.lang.Class.initializeClass(libgcj.so.70)
   at java.lang.Class.forName(libgcj.so.70)
   at java.awt.Toolkit.getDefaultToolkit(libgcj.so.70)
   ...14 more

It looks like maybe something isn't installed or a configuration problem, any suggestions?

I have this same Java app working on my desktop, so I know it works, but I am using older Java packages on the desktop, so I am not sure the two machines are really comparable.

Clayton


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org




Reply to: