Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 163671 - java can't find on AMD64
Summary: java can't find on AMD64
Status: CLOSED DUPLICATE of bug 156005
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 4
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2005-07-20 07:08 UTC by Nicholas Miell
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2005-07-20 07:10:31 UTC

Attachments (Terms of Use)

Description Nicholas Miell 2005-07-20 07:08:55 UTC
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/
   at (/usr/lib64/
   at java.awt.Font.getPeerFromToolkit(java.lang.String, java.util.Map)
   at java.awt.Font.Font(java.lang.String, int, int) (/usr/lib64/
   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/
   at javax.swing.plaf.metal.MetalLookAndFeel.createDefaultTheme()
   at javax.swing.plaf.metal.MetalLookAndFeel.MetalLookAndFeel()
   at javax.swing.UIManager.<clinit>() (/usr/lib64/
   at java.lang.Class.initializeClass() (/usr/lib64/
   at foldndrop.JMain.main(java.lang.String[]) (Unknown Source)
   at .main (/usr/lib64/
   at .__libc_start_main (/lib64/
Caused by: java.lang.ClassNotFoundException:
not found in
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.lang.ClassLoader.loadClass(java.lang.String, boolean)
   at java.lang.ClassLoader.loadClass(java.lang.String) (/usr/lib64/
   at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader)
   at java.awt.Toolkit.getDefaultToolkit() (/usr/lib64/
   ...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 07:10:31 UTC

*** 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.