Discussion Board
HelloWorld problems with Nokia 9210
2002-12-13, 09:37
#1
Registered User
Hi,
I have problems to install HelloWorld application. Here is my Hello.java:
import java.awt.*;
import java.awt.event.*;
public class Hello extends Frame {
public static void main(String[] args) {
Hello hi = new Hello();
}
Hello() {
Label label = new Label("Hello world");
this.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
this.add(label);
this.pack();
this.show();
}
}
And the Hello.pkg file is here:
;
; Install file for Hello
;
#{"Hello"},(0x01001111),1,0,0
"Hello.app"-"!:\system\apps\Hello\Hello.app"
"Hello.aif"-"!:\system\apps\Hello\Hello.aif"
"Hello.jar"-"!:\system\apps\Hello\Hello.jar"
"Hello.txt"-"!:\system\apps\Hello\Hello.txt"
This runs perfectly on emulator, but does not on the Communicator! Installation goes fine, but after "Starting Java...", nothing happens!!! Does anyone can help me to find out the little trick, that I have not noticed yet...
Yours, JariHa
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules