[kaffe] Kaffe and AWT - Problems

heppan at arcor.de heppan at arcor.de
Mon Mar 1 07:16:02 PST 2004


i want to start a small awt programm

import java.awt.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class Main extends Frame implements ActionListener {
    Button b = new Button("Button");

    Main() {
        super("Button Example");
        add(b, BorderLayout.CENTER);
        b.addActionListener(this);
        pack();
        show();
    }

    public void actionPerformed(ActionEvent evt) {
        System.out.println("Button pressed");
    }

    static public void main(String[] args) {
        new Main();
    }
}

when i run kaffe, there is always the error message:

java.lang.UnsatisfiedLinkError: libawt: not found
Adding its directory to LD_LIBRARY_PATH may help.
   at java.awt.Window.<init> (Window.java:34)
   at java.awt.Window.<clinit> (Window.java:26)


so i put the libawt from /home/pr4/local/kaffe113qt/jre/lib/i386
to the LD_LIBRARY_PATH and then there is the error message:

java.lang.UnsatisfiedLinkError: /home/pr4/local/kaffe113qt/jre/lib/i386/libawt-1.1.3.so: undefined symbol: _ZN7QWidget8x11EventEP7_XEvent
Adding its directory to LD_LIBRARY_PATH may help.
   at java.awt.Window.<init> (Window.java:34)
   at java.awt.Window.<clinit> (Window.java:26)

what is _ZN7QWidget8x11EventEP7_XEven ? i have no idea, need help

thx 4 help + support

heppan








More information about the kaffe mailing list