Discussion Board

Results 1 to 3 of 3
  1. #1
    Super Contributor
    Join Date
    Mar 2003

    Why Java do not work in 9210!!!

    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

  2. #2
    Super Contributor
    Join Date
    Mar 2003

    RE: Why Java do not work in 9210!!!

    Posted by Forum Nokia Developer Support, communicator.developer@nokia.com
    on February 14, 2002 at 16:10


    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.

    Forum Nokia Developer Support

  3. #3
    Registered User
    Join Date
    Mar 2003

    RE: Why Java do not work in 9210!!!

    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] );
    } catch(InterruptedException ie) { }

    System.out.println("Running JLife...");
    JLife jlife = new JLife();
    jlife.repaint = true;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts