I finally got the emulator to run, I must have read Kajetan's HOWTO a million times and the line I was missing all the time was :
In command prompt enter the command: devices -setdefault @UIQ_70:com.symbian.UIQ
Before that I have had problems with no class found and the /Thread thing..
Well, problem solved.. Now I got anotherone on my hand, the emulator starts but it will not show my app.. I have added some System.out.print(..) so I know it is "running" but it wont show up on my P800(emulator)..
I use Katejan's build+run script's..
Why wont it show my app ?
Thanks!
Ps. Code for the app : test.java ->
import java.awt.*;
import java.awt.event.*;
public class test extends Frame implements ActionListener {
public static void main(String args[]) {
System.out.println("in constructor"😉;
test h = new test();
}
test() {
System.out.println("in class"😉;
Label lab = new Label("Hello World"😉;
Button b = new Button("Dismiss"😉;
b.addActionListener(this);
addWindowListener(new Goodbye());
setLayout(new GridLayout(2, 1, 10, 10));
add(lab);
add(b);
pack();
show();
}
public void actionPerformed(ActionEvent e) {
dispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));
}
private class Goodbye extends WindowAdapter {
public void windowClosing(WindowEvent e) {
System.out.println("Goodbye"😉;
System.exit(0);
}
}
}
Ds.