[kaffe] [Kafe] qte, kaffe & AWT

Fabien Renaud renaud at nentec.de
Wed May 26 02:51:03 PDT 2004


Hello,

Finaly I can run some java programs written with qt on my ARM box (
hurra :) )
I have qte-2.3.4 and a libqtjava hacked by Richard Dale (thanks Richard ;) )
Now I?d like to run awt applications. I compiled kaffe with awt=qt but I
have this message :

[CommBox(root)]:~# kaffe-bin Snowman
tlkProperties
Cannot open /dev/psaux (No such device)
qapp initialization.

tlkInit Done.
tlkGetScreenWidth
tlkGetScreenHeight
tlkGetResolution
Native AWT ---->evtInit
tlkVersion
Native AWT ---->fntInitFont...Default
Native AWT ---->fntInitFont...Default
Native AWT ---->fntInitFont...Default
Native AWT ---->fntInitFont...Monospaced
Native AWT ---->fntInitFont...Default
Native AWT ---->fntInitFont...Default
Native AWT ---->fntInitFont...Default
Native AWT ---->fntInitFont...Default
Native AWT ---->fntGetFixedWidth 0
Native AWT ---->fntIsWideFont
tlkDisplayBanner
pc : [<401eccbc>] lr : [<401eccd0>] Not tainted
sp : 00255914 ip : 00255908 fp : 002559f4
r10: 402f4cb8 r9 : 00008d8c r8 : 402f7390
r7 : 00000002 r6 : 0000acec r5 : 00000005 r4 : 00000005
r3 : 00000014 r2 : 40a599c0 r1 : 00000000 r0 : 00000000
Flags: nZCv IRQs on FIQs on Mode USER_32 Segment user
Control: 397F Table: A1354000 DAC: 00000015
pc : [<401eccbc>] lr : [<401eccd0>] Not tainted
sp : 00255bf8 ip : 00255bec fp : 00255cd0
r10: 402f4cb8 r9 : 00008d8c r8 : 402f7390
r7 : 00000002 r6 : 0000acec r5 : 00000005 r4 : 00000005
r3 : 00000014 r2 : 40a599c0 r1 : 00000000 r0 : 00000000
Flags: nZCv IRQs on FIQs on Mode USER_32 Segment user
Control: 397F Table: A1354000 DAC: 00000015
pc : [<401eccbc>] lr : [<401eccd0>] Not tainted
sp : 00255344 ip : 00255338 fp : 00255424
r10: 402f4cb8 r9 : 00008d8c r8 : 402f7390
r7 : 00000002 r6 : 0000acec r5 : 00000005 r4 : 00000005
r3 : 00000014 r2 : 40a599c0 r1 : 00000000 r0 : 00000000
Flags: nZCv IRQs on FIQs on Mode USER_32 Segment user
Control: 397F Table: A1354000 DAC: 00000015
pc : [<401eccbc>] lr : [<401eccd0>] Not tainted
sp : 00255d50 ip : 00255d44 fp : 00255e28
r10: 402f4cb8 r9 : 00008d8c r8 : 402f7390
r7 : 00000002 r6 : 0000acec r5 : 00000005 r4 : 00000005
r3 : 00000014 r2 : 40a599c0 r1 : 00000000 r0 : 00000000
Flags: nZCv IRQs on FIQs on Mode USER_32 Segment user
Control: 397F Table: A1354000 DAC: 00000015
Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/NullPointerException
at java.lang.Thread.finish(Thread.java:183)





This is the source I want to run :
import java.awt.*;
import java.awt.event.*;

public class Snowman extends Frame {
public static void main (String [] argv){
Snowman theSnowman = new Snowman();
}
public Snowman(){
setTitle("The Coloured Snowman");
Panel buttons = new Panel();
Button redButton = new Button("Red");
Button blueButton = new Button("Blue");
Button greenButton = new Button("Green");
buttons.add(redButton);
buttons.add(blueButton);
buttons.add(greenButton);
add("South", buttons);
setSize(300,300);
setVisible(true);
addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e){
System.exit(0);
}
});
}
}



If someone can help me :)


Cheers,

Fabien






More information about the kaffe mailing list