JMF install on Linux: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.

Discussion in 'Java' started by Robert Mark Bram, Dec 8, 2003.

  1. Howdy All!

    I tried installing jmf-2_1_1e-linux-i586.bin on my RedHat 9 machine. A
    screen dump of the output is below but the important failure is this:
    Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit:
    gnu.java.awt.peer.gtk.GtkToolkit

    I understand from my google search so far that the gtk packages are not
    complete.. my question is how do I tell JMF not to use "gcj" and use
    "java" or "javac" instead?

    Thanks for any advice!

    Rob
    :)





    Do you agree to the above license terms? [yes or no]
    yes
    Permit recording from an applet? (see readme.html) [yes or no]
    yes
    Permit writing local files from an applet? (recommend no, see readme.html)
    [yes or no]
    no
    Unpacking...
    Extracting...
    UnZipSFX 5.40 of 28 November 1998, by Info-ZIP ().
    creating: JMF-2.1.1e/
    creating: JMF-2.1.1e/bin/
    inflating: JMF-2.1.1e/bin/jmfinit
    inflating: JMF-2.1.1e/bin/jmfregistry
    inflating: JMF-2.1.1e/bin/jmstudio
    creating: JMF-2.1.1e/doc/
    inflating: JMF-2.1.1e/doc/attributions.html
    inflating: JMF-2.1.1e/doc/formats.html
    inflating: JMF-2.1.1e/doc/readme.html
    creating: JMF-2.1.1e/lib/
    inflating: JMF-2.1.1e/lib/libjmcvid.so
    inflating: JMF-2.1.1e/lib/libjmdaud.so
    inflating: JMF-2.1.1e/lib/libjmfjawt.so
    inflating: JMF-2.1.1e/lib/libjmg723.so
    inflating: JMF-2.1.1e/lib/libjmgsm.so
    inflating: JMF-2.1.1e/lib/libjmh261.so
    inflating: JMF-2.1.1e/lib/libjmh263enc.so
    inflating: JMF-2.1.1e/lib/libjmjpeg.so
    inflating: JMF-2.1.1e/lib/libjmmpa.so
    inflating: JMF-2.1.1e/lib/libjmmpegv.so
    inflating: JMF-2.1.1e/lib/libjmmpx.so
    inflating: JMF-2.1.1e/lib/libjmutil.so
    inflating: JMF-2.1.1e/lib/libjmv4l.so
    inflating: JMF-2.1.1e/lib/libjmxlib.so
    inflating: JMF-2.1.1e/lib/jmf.properties
    inflating: JMF-2.1.1e/lib/jmf.jar
    inflating: JMF-2.1.1e/lib/mediaplayer.jar
    inflating: JMF-2.1.1e/lib/multiplayer.jar
    returned
    end
    Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit:
    gnu.java.awt.peer.gtk.GtkToolkit
    at 0x40268e17: java.lang.Throwable.Throwable(java.lang.String)
    (/usr/lib/./libgcj.so.3)
    at 0x4025bc8e: java.lang.Error.Error(java.lang.String)
    (/usr/lib/./libgcj.so.3)
    at 0x40329582: java.awt.AWTError.AWTError(java.lang.String)
    (/usr/lib/./libgcj.so.3)
    at 0x40340c9d: java.awt.Toolkit.getDefaultToolkit()
    (/usr/lib/./libgcj.so.3)
    at 0x4034146e: java.awt.Window.getToolkit() (/usr/lib/./libgcj.so.3)
    at 0x40332068: java.awt.Container.addImpl(java.awt.Component,
    java.lang.Object, int) (/usr/lib/./libgcj.so.3)
    at 0x40331ea6: java.awt.Container.add(java.lang.String,
    java.awt.Component) (/usr/lib/./libgcj.so.3)
    at 0x403831e7: ffi_call_SYSV (/usr/lib/./libgcj.so.3)
    at 0x403831a7: ffi_raw_call (/usr/lib/./libgcj.so.3)
    at 0x402306e8: _Jv_InterpMethod.continue1(_Jv_InterpMethodInvocation)
    (/usr/lib/./libgcj.so.3)
    at 0x40230ff4: _Jv_InterpMethod.run(ffi_cif, void, ffi_raw,
    _Jv_InterpMethodInvocation) (/usr/lib/./libgcj.so.3)
    at 0x4022e504: _Jv_InterpMethod.run_normal(ffi_cif, void, ffi_raw,
    void) (/usr/lib/./libgcj.so.3)
    at 0x4038305c: ?? (??:0)
    at 0x403831e7: ffi_call_SYSV (/usr/lib/./libgcj.so.3)
    at 0x403831a7: ffi_raw_call (/usr/lib/./libgcj.so.3)
    at 0x402306e8: _Jv_InterpMethod.continue1(_Jv_InterpMethodInvocation)
    (/usr/lib/./libgcj.so.3)
    at 0x40230ff4: _Jv_InterpMethod.run(ffi_cif, void, ffi_raw,
    _Jv_InterpMethodInvocation) (/usr/lib/./libgcj.so.3)
    at 0x4022e504: _Jv_InterpMethod.run_normal(ffi_cif, void, ffi_raw,
    void) (/usr/lib/./libgcj.so.3)
    at 0x4038305c: ?? (??:0)
    at 0x403831e7: ffi_call_SYSV (/usr/lib/./libgcj.so.3)
    at 0x403831a7: ffi_raw_call (/usr/lib/./libgcj.so.3)
    at 0x402306e8: _Jv_InterpMethod.continue1(_Jv_InterpMethodInvocation)
    (/usr/lib/./libgcj.so.3)
    at 0x40230ff4: _Jv_InterpMethod.run(ffi_cif, void, ffi_raw,
    _Jv_InterpMethodInvocation) (/usr/lib/./libgcj.so.3)
    at 0x4022e504: _Jv_InterpMethod.run_normal(ffi_cif, void, ffi_raw,
    void) (/usr/lib/./libgcj.so.3)
    at 0x4038305c: ?? (??:0)
    at 0x40242dd8: gnu.gcj.runtime.FirstThread.call_main()
    (/usr/lib/./libgcj.so.3)
    at 0x402ad02d: gnu.gcj.runtime.FirstThread.run()
    (/usr/lib/./libgcj.so.3)
    at 0x4024fc4c: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/./libgcj.so.3)
    at 0x4021c8ac: _Jv_RunMain(java.lang.Class, byte const, int, byte
    const, boolean) (/usr/lib/./libgcj.so.3)
    at 0x08048910: ?? (??:0)
    at 0x42015704: __libc_start_main (/lib/tls/libc.so.6)
    at 0x080486c1: ?? (??:0)
    Done.
     
    Robert Mark Bram, Dec 8, 2003
    #1
    1. Advertising

  2. Andrew Thompson, Dec 8, 2003
    #2
    1. Advertising

  3. My work-around: uninstall gcc-java and jdkgcj rpm's. I might even
    reinstall them some time...

    Rob
    :)
     
    Robert Mark Bram, Dec 11, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John O'Conner
    Replies:
    1
    Views:
    487
    totojepast
    Jan 30, 2004
  2. Sudheer
    Replies:
    2
    Views:
    1,335
    Roedy Green
    Apr 1, 2004
  3. Guy Noir

    Re: peer to peer messaging

    Guy Noir, May 26, 2005, in forum: Java
    Replies:
    7
    Views:
    700
    Owen Jacobson
    May 31, 2005
  4. Matt Gessner
    Replies:
    1
    Views:
    1,406
  5. Replies:
    0
    Views:
    379
Loading...

Share This Page