When i trying to start games such as
JLife or Asteroids (writen in java)
my communicator starts java, but game window
does not appear.
( JLife i download from nokia.com )
Also, when i try to load HTML page with very simple applet - nothing happens (i.e. text from html page i can see, but applet do not starts).
(applet compiled with JDK 1.1.8 and just prints "Hello world.". Applet satisfies the requirements of PersonalJava specification 1.1.1, that used in 9210)
Posted by Yuri Aksenov, urkaxx@iss.ru
on February 14, 2002 at 13:10
RE: Why Java do not work in 9210!!!
2002-05-24, 15:25#2
Posted by Forum Nokia Developer Support, communicator.developer@nokia.com
on February 14, 2002 at 16:10
Hi,
Yes, you really need cawt.jar for running JLife application and also for running most of the 3rd party PersonalJava applications for the Nokia 9210 Communicator.
There is no applet support in the Nokia 9210 Communicator's web browser because of the resource limitations. However, you can run applets by using AppletViewer. You should have a parameter file YourApplet.txt with
parameters like "sun.applet.AppletViewer YourApplet.htm". In the html file you should have lines like <APPLET CODE="YourApplet.class"
archive="YourApplet.jar" WIDTH=500 HEIGHT=170> </APPLET> to load your applet.
Regards,
Forum Nokia Developer Support
RE: Why Java do not work in 9210!!!
2002-09-12, 14:40#3
I have found that JLife has a problem in its main().
The code uses Thread.currentThread().sleep()
which should be correct but for some reason it did not return to finish the main().
I changed it to just Thread.sleep() and it works fine now:
public static void main(String args[])
{
int sleep = 25000;
if( args.length > 0 )
sleep = Integer.parseInt( args[0] );
try
{
Thread.sleep(sleep);
} catch(InterruptedException ie) { }