maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   n800 and java (https://talk.maemo.org/showthread.php?t=35172)

mike_bike_kite 2009-11-26 15:10

n800 and java
 
I wrote an applet years back to play draughts (checkers in the US) - I wondered how hard it would be to make it into an application for my n800 (OS2008). Is there a simple process to convert an applet into an executable so that the user doesn't need to download extra software?

Cheers for any advice

Mike

wahlau 2009-11-26 15:19

Re: n800 and java
 
i am no java guru, but i think if it is written using AWT and the needed UI libraries are supported by Jalimo packages, your chances are quite high to be able to run the applet as an application (with enough changes and tests).

all the best!

mike_bike_kite 2009-11-26 16:47

Re: n800 and java
 
Do you know what tools I need to produce an executable?
Would it be an executable that anyone could download and run or would they need to install java?
Can I do the development on my PC (XP) first?

Thanks for your reply

Mike

PS These are the libraries I call so I assume I'm ok
  • import java.applet.Applet;
  • import java.awt.Color;
  • import java.awt.Component;
  • import java.awt.Dimension;
  • import java.awt.Event;
  • import java.awt.Font;
  • import java.awt.Graphics;
  • import java.awt.Image;
  • import java.awt.Rectangle;
  • import java.awt.Toolkit;
  • import java.io.PrintStream;
  • import java.util.Date;
  • import java.util.Random;
  • import java.util.HashMap
PS2 apart from writting this program in Java I know very little else about the language. I didn't use any clever menus so I assume that will help towards porting it across.

mike_bike_kite 2009-11-29 19:27

Re: n800 and java
 
Bump.

I see lots of applets on the device ie desktop > home > applet settings

but I just don't see any .class files when I do a search - I tried a unix find as well and saw nothing either. If I had a class file can I just drop it onto the machine and run it as an applet? If not what do I need to do to get my own applet to run?

lorelei 2009-11-29 21:56

Re: n800 and java
 
Quote:

Originally Posted by mike_bike_kite (Post 399529)
Bump.

I see lots of applets on the device ie desktop > home > applet settings

but I just don't see any .class files when I do a search - I tried a unix find as well and saw nothing either. If I had a class file can I just drop it onto the machine and run it as an applet? If not what do I need to do to get my own applet to run?

Those are not applet in the Java sense of the word. In fact the applets you see are just "standard" application for the home screen of the N800, written in C/C++/Python/??, but not Java for sure.

In fact there's no official support of Java on the N800, nor on the N900 for that matter.

mike_bike_kite 2009-12-01 08:19

Re: n800 and java
 
Ah - that explains it - thanks
Mike

Andre Klapper 2009-12-01 08:45

Re: n800 and java
 
This has been asked a lot of times here. For future reference, searching first is welcome. :)

mike_bike_kite 2009-12-04 13:26

Re: n800 and java
 
Yes I searched the site for java posts - sadly the site is so slow that it quickly becomes painful to work through more than a few threads - none of which had the answer I was looking for. Must admit I can't even find a link to show me all my own posts which currently means (for me) searching for my user name, finding nothing and being sent to an advanced search page, then copying and pasting my name into the user field and then pressing search again. Each search part takes approx 10 seconds (is the server run on an n800??). Maybe there's a simple link I'm missing?

YoDude 2009-12-04 13:46

Re: n800 and java
 
Quote:

Originally Posted by mike_bike_kite (Post 409833)
Yes I searched the site for java posts - sadly the site is so slow that it quickly becomes painful to work through more than a few threads - none of which had the answer I was looking for. Must admit I can't even find a link to show me all my own posts which currently means (for me) searching for my user name, finding nothing and being sent to an advanced search page, then copying and pasting my name into the user field and then pressing search again. Each search part takes approx 10 seconds (is the server run on an n800??). Maybe there's a simple link I'm missing?

It would be pr'oly easier to convert your JAVA apps to SWF files if you ant to store them locally to use in the browser...

Try the checkers game found here >> http://talk.maemo.org/showpost.php?p=288466&postcount=2


All times are GMT. The time now is 15:16.

vBulletin® Version 3.8.8