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)

ideligoz 2010-02-09 18:35

Re: JAVA on the N900 is possible!
 
I am trying to run trapster ( http://trapster.com/tmvr/s/tm.jad ) under microemulator. I finally got it started but it cannot access the location services.
can microemulator access the gps data?

fred123 2010-02-09 18:57

Re: JAVA on the N900 is possible!
 
1 Attachment(s)
Quote:

Originally Posted by qole (Post 518087)
Microemulator can be made to have a large display, you have to set it in Options -> Select Device. Change the default to "Resizable Device".

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.

qole 2010-02-09 19:47

Re: JAVA on the N900 is possible!
 
Is there any way to get Java apps for the N97 (like the qandoTouch.jar app) to work on the N900? What do they require to work?

What exactly is the Nokia Java Runtime for S60v5? Is it an extended version of ME? A pared -down version of SE? I'm guessing the former, because Java SE doesn't run the .jar files either...

I think MicroEmulator is only designed to handle the really simple JaveME apps (.jad files) and the JME files packaged as .jar are too much for it to handle.

radiowc 2010-02-09 20:06

Re: JAVA on the N900 is possible!
 
Nokia please make N900 support this

Java 2 Micro Edition support (CLDC 1.1, MIDP 2.0) or higher

:(:(:(:(:(

fred123 2010-02-09 20:16

Re: JAVA on the N900 is possible!
 
2 Attachment(s)
Quote:

Originally Posted by qole (Post 518183)
Is there any way to get Java apps for the N97 (like the qandoTouch.jar app) to work on the N900? What do they require to work?

What exactly is the Nokia Java Runtime for S60v5? Is it an extended version of ME? A pared -down version of SE? I'm guessing the former, because Java SE doesn't run the .jar files either...

I think MicroEmulator is only designed to handle the really simple JaveME apps (.jad files) and the JME files packaged as .jar are too much for it to handle.

The atached screenshot if a .jar app from http://www.traffictv.co.uk. It provides live traffic info and stillimages from motorway cameras. It works, except GPS, in microemulator only problem is font size.

These are from n900.

derdas 2010-02-09 21:03

Re: JAVA on the N900 is possible!
 
Thanks fred123, but obviously this is only a workaround which doesn't satisfy. But still: congratulations: I didn't even get that far!!!
So is there a light at the end of the tunnel? Or shall I give up?

Addison 2010-02-10 07:52

Re: JAVA on the N900 is possible!
 
I am so lost with this.

Nuts!

I can get the Microemulator running but I can't seem to get a java script, like the one qole posted on the 3D Demo, to even run.

I either have the permissions or owners set all wrong or I need to set the path variable, which I have yet to do.

Anyway, I'm not too sure this is even going to work.

Quick question here.

I took one of the .jar files that was installed on my memory card from that app I mentioned earlier and put it on my home computer desktop.

If I double click on the file (I've tried like 5 different ones) nothing happens on the screen.

I do have java installed on my PC and other .jar programs do work.

So I guess this is my question.

Am I losing some type of executable function because the files where on my memory card?

I'd just like to know if this whole thing of getting UptoDate on my tablet is even possible.

I would post one of the files for you guys to test, but they're all like 7 - 9 megs each.

I sure do wish someone could figure out a few answers for me on this. :)

byte_76 2010-02-10 11:40

Re: JAVA on the N900 is possible!
 
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.

mughalgxt 2010-02-10 23:48

Re: JAVA on the N900 is possible!
 
[QUOTE=Addison;518931]I am so lost with this.

Addison sharing the common plight, unable to run jar scripts(uptodate) on n900. hoping a resolution with nokia bringing java support with new update. fingers crossed;);)

Addison 2010-02-11 00:03

Re: JAVA on the N900 is possible!
 
[QUOTE=mughalgxt;520388]
Quote:

Originally Posted by Addison (Post 518931)
I am so lost with this.

Addison sharing the common plight, unable to run jar scripts(uptodate) on n900. hoping a resolution with nokia bringing java support with new update. fingers crossed;);)

Hey mug!

Did I read this correctly?

You're also hoping to get UptoDate working on your tablet as well?

It's really good to hear that I'm not the only one in the boat on this. :)

Let's start sharing information with eachother and see if we can't work this problem.

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.

Rob1n 2010-02-13 14:31

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by Olle (Post 524689)
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.

That's why I said "from Sun".

kamishly 2010-02-13 18:04

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by Rob1n (Post 524699)
That's why I said "from Sun".

I'm new to the N900 because of the desktop browsing ability.

Now, I'm hoping I can get help here, I'm a stock trader and use Scottrade's streaming stock quotes but when I launch the streamer it does nothing as i think the device needs a Java applet because that's what it uses on my laptop.

Any suggestion on what to download for the Java applet??

Olle 2010-02-13 18:12

Re: JAVA on the N900 is possible!
 
The CambridgePackage works fine, and its OpenSource, so there a no licence issues
but its hang sometimes like a long hiccup.

but it is a real alternative for people who prefer OpenSource.

soeiro 2010-02-13 19:00

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by kamishly (Post 524957)
I'm new to the N900 because of the desktop browsing ability.

Now, I'm hoping I can get help here, I'm a stock trader and use Scottrade's streaming stock quotes but when I launch the streamer it does nothing as i think the device needs a Java applet because that's what it uses on my laptop.

Any suggestion on what to download for the Java applet??

That's what this thread is about: getting some kind of Java VM working on the N900. I think that right now there is basically two paths:
  1. Install Easy debian (which gives you firefox, java, etc), but not "native" to the N900
  2. Follow this thread to try to install one of those JVMs.

kamishly 2010-02-14 05:34

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by soeiro (Post 525020)
That's what this thread is about: getting some kind of Java VM working on the N900. I think that right now there is basically two paths:
  1. Install Easy debian (which gives you firefox, java, etc), but not "native" to the N900
  2. Follow this thread to try to install one of those JVMs.

I do have Firefox browser downloaded, isn't java automatic with that?

Also could you explain little more in regard to the Easy Debian and how to download, is that what I'm missing for java on the device?

Olle 2010-02-14 12:47

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by kamishly (Post 525601)
I do have Firefox browser downloaded, isn't java automatic with that?

Also could you explain little more in regard to the Easy Debian and how to download, is that what I'm missing for java on the device?

No, Firefox, MicroB and all the other Browsers on the N900 supports JavaScript,

In EasyDebian you got a complete different LinuxOS in CRoot loaded.
Its maintained by quole and he did a wonderful work but its some kind of slow, but works out of the box.
Informations are in this thread: Easy Debian Fremantle Beta Testing

I dont know how to get applet get to work in MicroB with the JRE

Ronaldo 2010-02-14 20:21

Re: JAVA on the N900 is possible!
 
i have easy debian installed and java applets dont load properly or close the browser.

dont work for me verywell

kamishly 2010-02-15 15:00

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by Ronaldo (Post 526350)
i have easy debian installed and java applets dont load properly or close the browser.

dont work for me verywell

How did you manage to install the Java applet?
a guide/link would be appreciated.

Ronaldo 2010-02-15 20:58

Re: JAVA on the N900 is possible!
 
i when to a site which uses java to do speedtest, never loaded.. tried other sites that had java stuff and same, broswer just blank.

i got my replacement phone today might try this jvm app and see if i can get opera mini running

meco-Jamaica 2010-02-16 14:18

Re: JAVA on the N900 is possible!
 
how do you do this....???

grube300 2010-02-20 11:45

Re: JAVA on the N900 is possible!
 
scala (www.scala-lang.org) out of the box running with sun embedded java 1.6.0_10
after installing embedded java from sun (headfull or use the link posted earlier), scala 2.7.7 final, just untar the scala in /home/opt and make a .profile int /home/user that sets the PATH variable to java and scala, and also sets JAVA_HOME and SCALA_HOME.
The good news is:allthough Sun embedded java does not include a javac compiler, the scalac compiler works, as it runs in the JVM itself!
N900 is really a nice Phone and linux machine!

Ronaldo 2010-02-20 12:52

Re: JAVA on the N900 is possible!
 
can some write a step by step how to get this installed please because i'm not sure what i'm meant to do first.

also does opera mini work and load java applets on sites?

rash.m2k 2010-02-23 14:16

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by Ronaldo (Post 538364)
can some write a step by step how to get this installed please because i'm not sure what i'm meant to do first.

also does opera mini work and load java applets on sites?

The way I understand it is that, first you need to install a java virtual machine (aka a java runtime envrironment - jre), from this link here:

https://cds.sun.com/is-bin/INTERSHOP...-CDS_Developer

HOWEVER I am unsure which of the two HEADFUL versions we need to download! Could someone please clarify this (softfloat or hardfloat?)

THEN we need to install microemulator which can run Java apps that are supposed to run on mobile devices (micro emulator is actually a java application).

THEN we use micro emulator to run apps like opera mini, google maps etc.

rash.m2k 2010-02-23 16:02

Re: JAVA on the N900 is possible!
 
EDIT:

I have got it working with OPERA mini!!!! First download Java SE from the link above (ARMv6 HEADFUL version), then foillow DAK's instructions on page 2 of this thread to get java working.

Now download micro emulator, it's a small zip file. Extract it and then cd into it using the command line and run java -jar microemulator.jar.

This will open up a window where you can find .jar files like opera mini and run it!

Ronaldo 2010-02-23 20:26

Re: JAVA on the N900 is possible!
 
when i type /opera.sh it says its missing but its in folder, how do i launch it?

excuse it, i realised i didnt do

"./"opera.sh

Ronaldo 2010-02-23 21:01

Re: JAVA on the N900 is possible!
 
1 Attachment(s)
went to a site and says i need java runtime :/ i thought this inludeded it lol

opera mini 5 works great. but i couldnt get any java games to run

rash.m2k 2010-02-24 08:24

Re: JAVA on the N900 is possible!
 
What errors are you getting Ronaldo???

Run the .JAR file rather than the .jad file. I got worms working, but doesn't accept input from the N900 keyboard.

ceefour 2010-02-25 11:15

Re: JAVA on the N900 is possible!
 
Has anyone tried the OpenJDK for Maemo?

http://wiki.maemo.org/OpenJDK_6.0_0_...abs%29_on_N900

http://wiki.maemo.org/images/2/2b/To...DK_on_N900.png

http://wiki.maemo.org/images/f/f7/Jedit.png

AlMehdi 2010-02-25 14:36

Re: JAVA on the N900 is possible!
 
How hard would it be to port sun-java6-plugin and sun-java6-jre from the Ubuntu repositories?

In Sweden we got an electronic legitimation used for signing on the internet that need those packages. It does not work with OpenJDK or IceTea. The legitimation is good in contact with the authorities (faster handling). Would be great if it worked on the N900.

CormacB 2010-02-25 18:36

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by AlMehdi (Post 545889)
How hard would it be to port sun-java6-plugin and sun-java6-jre from the Ubuntu repositories?

Impossible unfortunately. They are the closed source versions. But I would imagine the Sun embedded JRE is very similar and might have the right certs. But again there is no browser that works with the Java plugin, and I assume you are wanting to use some applet.


All times are GMT. The time now is 12:14.

vBulletin® Version 3.8.8