Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JMF install on Linux: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.

Reply
Thread Tools

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

 
 
Robert Mark Bram
Guest
Posts: n/a
 
      12-08-2003
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 ((E-Mail Removed)).
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_InterpMethodInvocat ion)
(/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_InterpMethodInvocat ion)
(/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_InterpMethodInvocat ion)
(/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.
 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      12-08-2003
"Robert Mark Bram" <(E-Mail Removed)> wrote in message
news(E-Mail Removed)...
> Howdy All!
>
> I tried installing jmf-2_1_1e-linux-i586.bin on my RedHat 9 machine.

....
> Thanks for any advice!


Best advice on the JMF can be obtained through the jmf-interest list..
http://java.sun.com/products/java-me...f/support.html

--
Andrew Thompson
* http://www.PhySci.org/ PhySci software suite
* http://www.1point1C.org/ 1.1C - Superluminal!
* http://www.AThompson.info/andrew/ personal site


 
Reply With Quote
 
 
 
 
Robert Mark Bram
Guest
Posts: n/a
 
      12-11-2003
My work-around: uninstall gcc-java and jdkgcj rpm's. I might even
reinstall them some time...

Rob

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
API Jmf:Transcoding to different formats (Solution SUN jmf: "Transcode.java ) Misterysword@hotmail.com Java 0 08-13-2007 11:40 AM
A bug of JMF(when JMF is playing video, InterruptedException occurs after the "refresh" button of IE is clicked)? taowang.gml@gmail.com Java 1 07-19-2006 11:21 PM
cannot run JMF (mpeg) player through web start on redhat linux 9. help! Daniel Java 0 04-12-2005 09:56 PM
How to resolve java.awt.AWTException: cannot open XIM problem in Java? Arun Java 0 05-18-2004 11:18 AM
JMF: Cannot run Diagnostic Robert Mark Bram Java 0 12-08-2003 04:19 PM



Advertisments