[kaffe] Problems using Swing "--without-classpath-gtk-awt"

davide.bonfanti at bticino.it davide.bonfanti at bticino.it
Mon Jan 31 00:46:19 PST 2005


I would like to use Kaffe on an arm-based board.
I downloaded Kaffe CVS version a pair of weeks ago.
I cross-compiled Kaffe with my toolchain and tried using both qte and X
obtaining the same Error while using Swing (everithing seams to be OK with
AWT):

java.lang.NoSuchMethodError:
java/awt/EventQueue.invokeLater(Ljava/lang/Runnable;)V
   at javax.swing.SwingUtilities.invokeLater (SwingUtilities.java:785)
   at javax.swing.RepaintManager.addInvalidComponent
(RepaintManager.java:275)
   at javax.swing.JComponent.revalidate (JComponent.java:1894)
   at javax.swing.JComponent.setOpaque (JComponent.java:2124)
   at javax.swing.JPanel.<init> (JPanel.java:83)
   at javax.swing.JPanel.<init> (JPanel.java:58)
   at javax.swing.JRootPane.createGlassPane (JRootPane.java:521)
   at javax.swing.JRootPane.getGlassPane (JRootPane.java:432)
   at javax.swing.JRootPane.<init> (JRootPane.java:484)
   at javax.swing.JFrame.createRootPane (JFrame.java:137)
   at javax.swing.JFrame.getRootPane (JFrame.java:122)
   at javax.swing.JFrame.frameInit (JFrame.java:86)
   at javax.swing.JFrame.<init> (JFrame.java:79)
   at ButtonDemo.createAndShowGUI (ButtonDemo.java:100)
   at ButtonDemo.main (ButtonDemo.java:123)


In effect in
.../libraries/javalib/awt-implementations/kaffe/java/awt/EventQueue.java
there isn't invokeLater method ...

I compiled Kaffe with these options:

KAFFEH=/.../kaffeh  ./configure --prefix=MYPREFIX --host=arm-linux
--enable-pure-java-math --build=i686-linux --without-esd
--with-kaffe-x-awt --with-x --without-classpath-gtk-awt
--x-includes=/.../usr/X11R6/include --x-libraries=/.../X11R6/usr/X11R6/lib
working with X (Xfree86 4.3.0)

and
KAFFEH=/.../kaffeh  ./configure --prefix=/home/davide/pippo
--host=arm-linux --enable-pure-java-math --build=i686-linux --without-esd
--with-qtdir=MYSOURCEQTDIR   --with-kaffe-qt-awt
--without-classpath-gtk-awt
working with qte (3.3.2)

Where am I wrong? Am I forced to use gtk?

Bonf




More information about the kaffe mailing list