[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help trying to compile
From: |
Joao Victor |
Subject: |
Re: Help trying to compile |
Date: |
Tue, 14 Dec 2004 19:14:14 +0000 |
On Tue, 14 Dec 2004 19:54:28 +0100, Michael Koch <address@hidden> wrote:
> Check with "gcj -v" that your GCC was configured with
> --enable-java-awt=<something> where something can be:
> gtk
> xlib
> gtk,xlib
It doesn't have that option...:
-------------------------
$ gcj34 -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.0/specs
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.0/libgcj.spec
rename spec lib to liborig
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-languages=c,c++,objc,java,f77
--host=i386-redhat-linux
Thread model: posix
gcc version 3.4.0 (Red Hat Linux 3.4.0-1)
-------------------------
>
> But I'm pretty sure AWT in 3.3.x doesnt really work. You need to use
> GCJ 3.4.x to have a usable AWT.
I've got gcj34 too, as you can see above. I'm trying to run a simple
Swing example (just creates a JFrame) but it's not working either :(
It compiles, but when i try to run, I get this:
-------------------
Exception in thread "main" java.lang.Error: not implemented
at javax.swing.UIDefaults.put(java.lang.Object, java.lang.Object)
(/usr/lib/libgcj.so.4.0.0)
at javax.swing.plaf.basic.BasicDefaults.BasicDefaults()
(/usr/lib/libgcj.so.4.0.0)
at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults()
(/usr/lib/libgcj.so.4.0.0)
at javax.swing.UIManager.getDefaults() (/usr/lib/libgcj.so.4.0.0)
at javax.swing.UIManager.getUI(javax.swing.JComponent)
(/usr/lib/libgcj.so.4.0.0)
at javax.swing.JPanel.updateUI() (/usr/lib/libgcj.so.4.0.0)
at javax.swing.JPanel.JPanel(java.awt.LayoutManager, boolean)
(/usr/lib/libgcj.so.4.0.0)
at javax.swing.JPanel.JPanel() (/usr/lib/libgcj.so.4.0.0)
at javax.swing.JRootPane.createGlassPane() (/usr/lib/libgcj.so.4.0.0)
at javax.swing.JRootPane.getGlassPane() (/usr/lib/libgcj.so.4.0.0)
at javax.swing.JRootPane.JRootPane() (/usr/lib/libgcj.so.4.0.0)
at javax.swing.JFrame.createRootPane() (/usr/lib/libgcj.so.4.0.0)
at javax.swing.JFrame.getRootPane() (/usr/lib/libgcj.so.4.0.0)
at javax.swing.JFrame.frameInit() (/usr/lib/libgcj.so.4.0.0)
at javax.swing.JFrame.JFrame(java.lang.String) (/usr/lib/libgcj.so.4.0.0)
at Teste.main(java.lang.String[]) (Unknown Source)
------------------
Could it be because JFrame is child of Frame, which is an AWT
component? Dunno...
Thank you,
J.V.
- Help trying to compile, Joao Victor, 2004/12/14
- Re: Help trying to compile, Joao Victor, 2004/12/14
- Re: Help trying to compile, Michael Koch, 2004/12/14
- Re: Help trying to compile, Joao Victor, 2004/12/14
- Re: Help trying to compile, Michael Koch, 2004/12/14
- Re: Help trying to compile, Joao Victor, 2004/12/14
- Re: Help trying to compile, Michael Koch, 2004/12/14
- Re: Help trying to compile,
Joao Victor <=
- Re: Help trying to compile, Michael Koch, 2004/12/14