Bug 163671 - java can't find gnu.java.awt.peer.gtk.GtkToolkit on AMD64
java can't find gnu.java.awt.peer.gtk.GtkToolkit on AMD64
Status: CLOSED DUPLICATE of bug 156005
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Depends On:
  Show dependency treegraph
Reported: 2005-07-20 03:08 EDT by Nicholas Miell
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-07-20 03:10:31 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Nicholas Miell 2005-07-20 03:08:55 EDT
Attempting to run a Java app that uses the AWT using gij on an AMD64 system
results in the following exception:

Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit:
   at java.awt.Toolkit.getDefaultToolkit() (/usr/lib64/libgcj.so.6.0.0)
   at java.awt.Font.tk() (/usr/lib64/libgcj.so.6.0.0)
   at java.awt.Font.getPeerFromToolkit(java.lang.String, java.util.Map)
   at java.awt.Font.Font(java.lang.String, int, int) (/usr/lib64/libgcj.so.6.0.0)
   at javax.swing.plaf.FontUIResource.FontUIResource(java.lang.String, int, int)
   at javax.swing.plaf.metal.DefaultMetalTheme.<clinit>()
   at java.lang.Class.initializeClass() (/usr/lib64/libgcj.so.6.0.0)
   at javax.swing.plaf.metal.MetalLookAndFeel.createDefaultTheme()
   at javax.swing.plaf.metal.MetalLookAndFeel.MetalLookAndFeel()
   at javax.swing.UIManager.<clinit>() (/usr/lib64/libgcj.so.6.0.0)
   at java.lang.Class.initializeClass() (/usr/lib64/libgcj.so.6.0.0)
   at foldndrop.JMain.main(java.lang.String[]) (Unknown Source)
   at .main (/usr/lib64/libgij.so.6.0.0)
   at .__libc_start_main (/lib64/libc-2.3.5.so)
Caused by: java.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkToolkit
not found in
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(java.lang.String)
   at java.lang.ClassLoader.loadClass(java.lang.String, boolean)
   at java.lang.ClassLoader.loadClass(java.lang.String) (/usr/lib64/libgcj.so.6.0.0)
   at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader)
   at java.awt.Toolkit.getDefaultToolkit() (/usr/lib64/libgcj.so.6.0.0)
   ...13 more

Stracing the Java process shows that gij is looking in /lib and /usr/lib,
finding the 32-bit library (which won't work) and then giving up. AMD64 versions
 will need to look in /lib64 and /usr/lib64.
Comment 1 Jakub Jelinek 2005-07-20 03:10:31 EDT

*** This bug has been marked as a duplicate of 156005 ***

Note You need to log in before you can comment on or make changes to this bug.