You Are Here:

Community: Developer Discussion Boards

#1 Old Why Java do not work in 9210!!! - 2002-05-24, 16:25

Join Date: Mar 2003
Posts: 2,428
Nokia_Archive
Offline
Super Contributor
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 Old RE: Why Java do not work in 9210!!! - 2002-05-24, 16:25

Join Date: Mar 2003
Posts: 2,428
Nokia_Archive
Offline
Super Contributor
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

#3 Old RE: Why Java do not work in 9210!!! - 2002-09-12, 15:40

Join Date: Mar 2003
Posts: 1
ctang20
Offline
Registered User
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) { }

System.out.println("Running JLife...");
JLife jlife = new JLife();
jlife.repaint = true;
jlife.repaint();
}
  « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d5632X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZjavaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxjavaX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ