maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   JAVA on the N900 is possible! (https://talk.maemo.org/showthread.php?t=37405)

barteo 2010-02-11 15:04

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by fred123 (Post 518119)
Unfortunately a lot of midlets I have tried do not seem to be able to use the resized screen area this is one of them.

note - Screenshot from pc not n900.

Resizable screen area should be fixed in MicroEmulator 3.0.0 snaphot version available at: http://snapshot.microemu.org/microemulator/download/

Dak 2010-02-11 15:10

Re: JAVA on the N900 is possible!
 
Finally got some sort of straight talk from Sun about the Java SE Embedded licensing issue...

Quote:

We currently do not offer an expiration free version of Java SE Embedded without a commercial license that has minimum quantity requirements.

However, the 90 day eval version can be downloaded as many times as you like, and the 90 clock starts from the date of installation.
Since there is no issue with reinstalling the JRE as many times as you wish, and since the N900 use-case clearly falls under the same concept of "general use" (ie. no license fee) as a regular x86 linux/doze JRE, I really don't see how they can complain about us making use of it.

For those that haven't figured it out yet, there's a hidden binary file (../jre/lib/arm/.1.6.0_10-ea-b39) that is updated to keep track of when your installation will expire.

Simply keep a backup copy of this file from the original JRE archive you downloaded, and use it to overwrite the installed copy whenever you need.

If you're a clever monkey, you might figure out how to run a script via cron to automate this ;)

TA-t3 2010-02-11 16:09

Re: JAVA on the N900 is possible!
 
Is it only the embedded java that's affected by this expiration date? I mean, there's no expiration date for the jre installation on my desktop computer.. and that's the version I would be interested in on the N900 too, for handling java authentication applets etc. in the browser.

Rob1n 2010-02-11 16:15

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by TA-t3 (Post 521358)
Is it only the embedded java that's affected by this expiration date? I mean, there's no expiration date for the jre installation on my desktop computer.. and that's the version I would be interested in on the N900 too, for handling java authentication applets etc. in the browser.

I think the only version of Java available for the ARM processor from Sun is the embedded version.

fred123 2010-02-11 16:50

Re: JAVA on the N900 is possible!
 
@barteo
I have tried this version on vista pc with latest java.

If I load "gmaps-232-m2_ts_L1.jar" it now makes use of the full resized area but gives loads of errors in the console window.

error MIDlet caught java.lang.NullPointerException
hh.a(null:-1)
java.lang.NullPointerException
at org.microemu.util.RecordStoreImpl.getSize(RecordSt oreImpl.java:244)
at ky.a(Unknown Source)
at ky.b(Unknown Source)
at fc.a(Unknown Source)
at fc.ab(Unknown Source)
at fc.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
at org.microemu.app.util.MIDletThread.run(MIDletThrea d.java:99)

Have you ever tried running this, can it get map data?

TrafficTv - this loads quickly and runs on v2 with font errors. On v3 it loads very slowly and keyboard and mouse are ignored.

pelago 2010-02-11 16:57

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by byte_76 (Post 519214)
I haven't read through all the pages here because I am just checking this during my lunch break and do not have much time but I would like know if java being available on the N900 means that we can somehow run android applications?

I don't want an android phone but there are about two or three apps that I would like to use such as, for example Shazam.

No, I'm afraid this doesn't make Maemo 5 able to run Android apps.

SubCore 2010-02-11 17:08

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by TA-t3 (Post 521358)
Is it only the embedded java that's affected by this expiration date? I mean, there's no expiration date for the jre installation on my desktop computer.. and that's the version I would be interested in on the N900 too, for handling java authentication applets etc. in the browser.

both the embedded java and the jre for your desktop provide Java SE, so from that point of view they're the same. architecture is different of course.

but there's no browser plugin available yet so that embedded java can handle applets.

the stupid expiration date is just sun being evil and wanting to squeeze money out of mobile device makers... :)

Bratag 2010-02-12 15:11

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by pelago (Post 521445)
No, I'm afraid this doesn't make Maemo 5 able to run Android apps.

Something interesting I saw a few days ago. Apparently some team has created a dalvik (the java runtime env that android uses) replacement. Supposedly it gives HUGE speed increases. I wonder if it could be ported to maemo :)

fred123 2010-02-13 02:04

Re: JAVA on the N900 is possible!
 
Java game working.

Online "GO" java client cgoban running on n900

http://talk.maemo.org/showpost.php?p=524137&postcount=2

Olle 2010-02-13 14:22

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by Rob1n (Post 521368)
I think the only version of Java available for the ARM processor from Sun is the embedded version.

No, backward in this thread there is a link to the OpenJDK package provided by Cambridge Software Labs, but after several testings i returned to the Sun Package.


All times are GMT. The time now is 07:23.

vBulletin® Version 3.8.8