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)

soeiro 2010-02-25 18:53

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by grube300 (Post 538289)
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!

This is very good news.

qole 2010-02-25 22:54

Re: JAVA on the N900 is possible!
 
Cambridge Labs version discussed earlier in the thread. Not as good as the Sun Embedded Java, but acceptable.


soeiro 2010-02-28 16:06

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by qole (Post 546702)
Cambridge Labs version discussed earlier in the thread. Not as good as the Sun Embedded Java, but acceptable.

Do you have an estimate of how bad/good is it comparing to SUN's version?

Hext 2010-03-01 00:08

Re: JAVA on the N900 is possible!
 
Is there any possibility to get it linked with browser? or only addon?

Hext 2010-03-01 01:36

Re: JAVA on the N900 is possible!
 
You will also need to alter your /etc/profile file slightly. Open it up (with vi)

vi /etc/profile

...and look at the line beginning with "export PATH="

You need to add ":/usr/local/bin" to the end of the path (inside the quotes).

Now you will be able to download Java SE jarfiles and run them by typing "java -jar somejarfile.jar"

I'm working on registering the ".jar" extension so that you can just dbl-click them to run them....I thought I had it figured out, but it's not working yet.
Seems I ****ed up this step when i open it now in vi it shows only blank lanes >.<, any help?

SubCore 2010-03-01 16:43

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by qole (Post 546702)
Cambridge Labs version discussed earlier in the thread. Not as good as the Sun Embedded Java, but acceptable.

btw, did anyone manage to pull the sources from the CamSWL site?

when i first tried a couple weeks ago they were down, i assumed (hoped) that would be temporary, but the link to sources.tar still points to oblivion...

derdas 2010-03-02 10:51

Re: JAVA on the N900 is possible!
 
SubCore can we please get in touch to discuss how to get qando to work? I would greatly appreciate your help!

fred123 2010-03-02 14:01

Re: JAVA on the N900 is possible!
 
2 Attachment(s)
I have finally got google maps running on my n900!

Using Barteo's microemulator
microemulator

and

Google maps 2.3.2 touch screen

Its a bit fiddly to get working, and we still need JSR-179 api for location.

SubCore 2010-03-02 14:17

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by derdas (Post 552282)
SubCore can we please get in touch to discuss how to get qando to work? I would greatly appreciate your help!

from the FAQ:
Quote:

#
Welche Voraussetzungen muss mein Mobiltelefon erfüllen?

Sie benötigen das MIDP-2 (Mobile Information Device Profile) und mindestens eine Bildschirmauflösung von: 176 x 220
MIDP-2 means Java ME. so your best bet would be Sun's Embedded Java and Microemulator on top of it.

qole 2010-03-02 19:25

Re: JAVA on the N900 is possible!
 
Oh boy! The new microemulator 3.0 snapshot (dated today) lets me enter data into Opera Mini text fields! I logged into Facebook!

EDIT: qandoTouch.jar also seems to work a lot better. I can't read German so I'm not sure what to do once I get into the app...

Hext 2010-03-03 01:44

Re: JAVA on the N900 is possible!
 
http://www.imagehut.net/images/zdgofh1srl2ujl3rq92.png
hmm halfassedly loaded but worth a try. Maybe it cant connect net?
Any way to check that?:cool:

and yes its a runescape client running/stuck, thou all the menus work.
Running Suns JavaSE

dmj726 2010-03-03 02:00

Re: JAVA on the N900 is possible!
 
Has anybody tried OpenJDK/IcedTea?

qole 2010-03-03 03:41

Re: JAVA on the N900 is possible!
 
dmj726: Yes, that's what the Cambridge package is.

Kurele 2010-03-03 06:21

Re: JAVA on the N900 is possible!
 
Hello all! How did that one person a while back get frostwire to work? Farthest ive gotten is here...

http://shermantj.selfip.com/online/S...302-230754.png

On the bright side i got
Gravity Defied working perfectly
Masturbator Pro doesnt vibrate but opens
Shazzam Music ID says its recording then sending then freezes
Opera Mini works fine
Sigmore Mines works fine
Sonic the hedgehog works Ok but is buggy
All have a great framerate
idc about resize as long as they work :p

derdas 2010-03-03 14:15

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by SubCore (Post 552464)
from the FAQ:


MIDP-2 means Java ME. so your best bet would be Sun's Embedded Java and Microemulator on top of it.

Yes, but the sad thing is that it doesn't work. But I'm no expert.
I got Opera mini to run, though.

SubCore 2010-03-03 14:18

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by derdas (Post 553977)
Yes, but the sad thing is that it doesn't work. But I'm no expert.
I got Opera mini to run, though.

according to qole, it works:
Quote:

Originally Posted by qole (Post 552857)
EDIT: qandoTouch.jar also seems to work a lot better. I can't read German so I'm not sure what to do once I get into the app...

i haven't tried myself as i have no use for this app, maybe i'll give it a shot on the weekend.

derdas 2010-03-04 08:32

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by SubCore (Post 553982)
according to qole, it works:.

If I remember correctly he wrote that he only tested it on his PC.
Not on the N900.
If there is any way I can help please let me know!
I think it would add great value to the N900 for people living in the east of Austria.

Hext 2010-03-05 00:28

Re: JAVA on the N900 is possible!
 
So I got suns javaSE working. I added link to embedded browser plugin and got it half working on maemos browser it shows up in plugins menu, but on site it just shows back box where should the applet be.http://www.la.gg/upl/screenshot03.png

fred123 2010-03-05 15:18

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by Hext (Post 556240)
So I got suns javaSE working. I added link to embedded browser plugin and got it half working on maemos browser it shows up in plugins menu, but on site it just shows back box where should the applet be.http://www.la.gg/upl/screenshot03.png

Been there before

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

I have also tried with Firefox. They don't sem to be able to use the plugin.

murdog 2010-03-11 08:27

Re: JAVA on the N900 is possible!
 
Sweet. Thanks all for sharing these steps - was able to get the j2me app up and running using suns j2se, microemu and openlapi. And just for the hell of it I fired up jboss:

22:36:30,146 INFO [Server] Starting JBoss (MX MicroKernel)...
22:36:30,157 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA
22:36:33,474 INFO [ServerInfo] OS-System: Linux 2.6.28-omap1,arm
22:51:43,837 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)] Started in 4m:14s:373ms

After a 4min startup (12 sec on my MBP) the N900 successfully hosted the backend service to other mobiles! hmmm.. maybe a beowulf cluster of n900's and I can get take on my MBP.

ceefour 2010-03-14 18:14

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by Dak (Post 432083)
OK n00bz...listen up ;)

The downloaded file is a gzipped tar (.tar.gz) archive. It's just a different kinda zipfile...it uses a different process for storing and compressing data, but conceptually they're similar.

I don't have a utility on my N900 to open these yet, so I downloaded it onto my PC. I run Fedora linux, which automatically fires up an archive manager when I dbl-click the file. There are free Windows utilities to handle these files too (try tucows.com).

When you expand (extract, inflate...whatever) this file, it will create a folder called "ejre1.6.0_10" and neatly store all the java software within.

All you need to do is use the "scp" command (Secure CoPy via SSH) with the "-r" option to recursively copy the folder and all its contents to your N900.

You'll need your N900s IP address - there's a very handy little widget for that (thanks to whoever made it!)

example:

scp -r ejre1.6.0_10 root@my.n900.ip.addr:/home/opt/java

(you'll need to create that java folder on your N900 first - go to xterm, use "sudo gainroot" and then type "mkdir /home/opt/java")

Once you get this far, we'll continue the lesson :)

Tip: To avoid using root, extract to /home/user instead of /home/opt .

lingenfr 2010-03-29 00:26

Re: JAVA on the N900 is possible!
 
Has anyone tried We Golf? It is only useful if it can access a GPS. I would like to run it on my N810, but might think about upgrading to the N900 if that would make a difference.

owerlord 2010-04-06 18:17

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by Hext (Post 553306)
http://www.imagehut.net/images/zdgofh1srl2ujl3rq92.png
hmm halfassedly loaded but worth a try. Maybe it cant connect net?
Any way to check that?:cool:

and yes its a runescape client running/stuck, thou all the menus work.
Running Suns JavaSE

wiw nice try to get runescape working pls <3

ymartin59 2010-04-09 21:28

Re: JAVA on the N900 is possible!
 
What is the "applet" support status ? I have made trials with Sun ARM JavaSE but no success, either with MicroB or Firefox.

I'm waiting for Symbian Java runtime sources publication to try to compile them on Linux if possible:
http://developer.symbian.org/main/so...dex.php?pk=266
That would be great to run all JavaME applications available !

Flynx 2010-04-13 07:34

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by fred123 (Post 552447)
I have finally got google maps running on my n900!

Using Barteo's microemulator
microemulator

and

Google maps 2.3.2 touch screen

Its a bit fiddly to get working, and we still need JSR-179 api for location.

Very nice :D

Dumb question... how did you get past the initial "terms and conditions" screen? I can decline, but can't scroll down to accept.

EDIT - Nevermind, i got it. Sweet :D

sniper200110 2010-04-16 13:59

Re: JAVA on the N900 is possible!
 
did an 1 ran runescape yet

bonsai009 2010-04-22 19:11

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by fred123 (Post 552447)
I have finally got google maps running on my n900!

Using Barteo's microemulator
microemulator

and

Google maps 2.3.2 touch screen

Its a bit fiddly to get working, and we still need JSR-179 api for location.

How do you implemented the JSR-179 api? I have copy the lapi.jar in the microemulator/lib directory, but not working...

devdev 2010-04-23 14:28

Re: JAVA on the N900 is possible!
 
Would some experienced forum member be so kind as to check if this java test applet runs on the n900 (or n810). If it does, I would get a device and find the easiest way to get java running.
TIA

https://fx2.oanda.com/test.html

ceefour 2010-04-23 15:30

Re: JAVA on the N900 is possible!
 
I think this thread is diluted with 3 separate issues, due to its ambiguous title:
  • Java Standard Edition (Java SE) on N900 -- easy, use Sun's JRE (limited trial) or OpenJDK's ARM build
  • Java Micro Edition (Java ME) -- workable, but some/most useful APIs/JSRs aren't supported
  • Java applet plugin for microb -- unworkable (?)

I recommend the thread be split, and this original thread be specialized to any of the three issues above by renaming the title.

devdev 2010-04-23 16:00

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by ceefour (Post 624584)
I think this thread is diluted with 3 separate issues, due to its ambiguous title:

I recommend the thread be split, and this original thread be specialized to any of the three issues above by renaming the title.

It appears there is also another somewhat related thread - in the Software > Applications section entitled "Java on Nokia N900 Maemo 5 for example Opera Mini"
http://talk.maemo.org/showthread.php?t=37799

christye 2010-04-24 08:56

Re: JAVA on the N900 is possible!
 
Hey guys,

I thought I'd try Dak's instructions as others had tried them and worked fine. I however... couldn't manage this.

Upon starting terminal now I am greeted with the following:
-sh: /etc/osso-af-init/af-defines.sh: whoami: not found

I thought I would ignore it, and try: sudo gainroot
This returns:
-sh: sudo: not found

Anyone have any ideas what could be going wrong? Was it the edit in the: /etc/profile file? If so, how can I get back to edit it again?

Any help would be very welcome,
Thanks,
Chris

Edit:
All commands that I try to enter give:
-sh: *command*: not found

Edit 2:
I regret turning it off in an attempt to powercycle. It now won't turn on. I think I'm have to reflash. *sigh* I miss my HTC Touch Pro =[

Edit 3:
Reflashed and back to normal! I managed to get Java working in the end, I didn't need to edit the /etc/profile file either. Unfortunately the Java app I wanted to use doesn't work. But ah well,Iit may come in handy if I ever have the need to run another =]

sabgvb 2010-04-29 04:03

Re: JAVA on the N900 is possible!
 
i am looking for a way to run a jar app on my n900

felbutss 2010-05-01 08:33

Re: JAVA on the N900 is possible!
 
how can jar not be supported. i am trying to run trapster

apache 2010-05-07 16:22

Re: JAVA on the N900 is possible!
 
http://maemoarena.com/2010/05/nokia-...emoed-in-n900/

HOpe this works :D

Chazhands 2010-05-10 19:05

Re: JAVA on the N900 is possible!
 
Hi, I've been using maemo.org ever since I got my N900, back at the end of December. It really is a more than useful site - vital in some respects for this phone.

However I have never been so stumped as this - what I'm sure is very simple - Java installation.

I first tried the simple guide on nokian900applications.com but it didn't work. I also found it a little confusing. The same then went when I tried the step by step guide on this thread. It is not just that it isn't working, but I feel more me it is missing out obvious and simple things, probably because I'm not techy enough.

In most ways I am not even at "noob" level, but I have been very used to installing and altering things in x-terminal through guides on this website.

Please could someone maybe do what someone else suggested earlier on this thread and do a video? Or even a s-t-e-p-b-y-s-t-e-p slow and laborious process, even like it's written for a spastic.

I really would so much like to get Java working on this wonderful phone of mine. And no, unlike some people on maemo.org, I do not just use this for a phone and maybe a play on a demo version of Bounce.

Regards, Charles


p.s. This is my first post, not only on this site, but on any forum. Does it possibly show...?


Oh, and please don't just link me to another guide on this site, I have searched and done everything I have seen to try.

sygys 2010-05-11 07:16

Re: JAVA on the N900 is possible!
 
Why cant some one make an easier way to run java browser. so everytime i wanna open java browser i have to do all these things.

and how is runescape running?

CooL_HunK 2010-05-11 12:59

Re: JAVA on the N900 is possible!
 
can any1 tell me that what other java apps can be run on n900 using the microemulator ?

ifama 2010-05-13 18:12

Re: JAVA on the N900 is possible!
 
Hi,

i succeeded in installing and running java apps on the n900. I was wondering whether it is possible to access the GPS module with java?
Another thing i would like to know if i might have a chance to connect to a bluetooth serial port (Bluetooth SPP)?

Thanks and many wishes

Dak 2010-05-13 18:16

Re: JAVA on the N900 is possible!
 
No Java/GPS integration for now....but I'm working on it ;)

ideligoz 2010-05-13 19:20

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by Dak (Post 657229)
No Java/GPS integration for now....but I'm working on it ;)

check out my post while ago:
http://talk.maemo.org/showthread.php?t=46688

I put the source code in a garage project:
https://garage.maemo.org/projects/openlapi/

I don't have much time so if you want you can continue the work.


All times are GMT. The time now is 01:06.

vBulletin® Version 3.8.8