PDA

View Full Version : JAVA on the N900 is possible!


Pages : [1] 2

mankir
2009-12-16, 13:01
It worked fine for me to install java (through apt-get netbeans from debian/lenny) after repartitioning the N900. I'm able to compile and run (javac/java) JAVA- (.class-)files now on my device.

steady
2009-12-16, 13:04
Do that mean i can maybe someday play Java based games with N900?

jwi
2009-12-16, 13:08
Isn it just possible to install only JDK without netbeans using atp-get?

thorbo
2009-12-16, 13:09
What is the performance like? The N800 would run Java apps, too... but they were really, really slow (unless in easy-debian, for example).

naabi
2009-12-16, 13:10
Do that mean i can maybe someday play Java based games with N900?

That depends. I guess OP is talking about J2SE environment which is quite different from J2ME that can be found from mobile phones. All the mobile phone games use J2ME. Applets etc. use J2SE, but that might be too heavy for N900.

SubCore
2009-12-16, 13:12
@steady

you probably need Java ME for the kind of games you mean - MIDlets for other mobile devices use this.
what mankir installed was a Java SE environment, which is intended for desktop applications. though there are a few webgames out there which need java SE, so it depends on what kind of games you're talking about.


could a moderator please merge this into the main java thread (http://talk.maemo.org/showthread.php?t=31678)? TIA

TA-t3
2009-12-16, 13:38
Applets is the only thing I would need Java for (some sites use this for authentication). So I guess that means SE is for me then and ME is out.

naabi
2009-12-16, 13:40
I wouldn't hold my breath waiting for browsers to support Java.

cenwesi
2009-12-16, 14:26
It worked fine for me to install java (through apt-get netbeans from debian/lenny) after repartitioning the N900. I'm able to compile and run (javac/java) JAVA- (.class-)files now on my device.

Care to share with us the steps you used to accomplish this. There is a software i need to try and run on this n900 it is called SageTv Placeshifter (http://www.sage.tv/download.html) for HTPC stuff.

khak
2009-12-16, 14:30
@mankir, how to do this ? step by step ? please...

mankir
2009-12-16, 16:55
I followed the steps on page 6 in: Repartition the internal drive (http://forums.internettablettalk.com/showthread.php?t=35122), but without the /opt partition. then selected ftp.debian.org/debian lenny as apt-source with: main non-free contrib and there you go...

cenwesi
2009-12-16, 17:23
i am seriously thinking about repartitioning. Was waiting to see when Nokia will release firmware...

Dak
2009-12-16, 18:53
Confirmed.

I downloaded the Sun Java SE for Embedded (ARMv6 jre 1.6_10 Headful)

Download it here (https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=ejre-6u10-oth-JPR@CDS-CDS_Developer)

Just inflate the tar.gz on your PC and use "scp -r" to copy it to your N900. Stick a "ln -s" symlink in your /usr/local/bin (may need to edit your path in /etc/profile)

Used Netbeans to build a little swing gui test application. Copied the jarfile across, runs just fine.

It's only a 90-day evaluation jre, sadly...

Dak
2009-12-16, 19:02
I see that Sun requires royalties for embedded jre deployment on anything other than "general purpose" devices. The N900 is most certainly a general purpose computer, just like my linux PC, which we do not pay royalties for.

I have put this question to Sun. Will report back.

Dak
2009-12-16, 19:28
Here I am, using a simple java app to browse my N900 filesystem - this is my jre folder in /home/opt/java/jre

http://i50.tinypic.com/33wpp8w.png

cenwesi
2009-12-16, 20:43
will anyone of you be willing to see if this java app for HTPC will work with that your java. It is called PlaceShifter (http://www.sagetv.com/postDL.php?tmpFile=linuxweb/miniclient.tar.gz)by sagetv.

Diavoli
2009-12-16, 20:54
WOW, Ok guys please please will this work on playing Ninja Video? Streaming? Please someone find this out. It would be much appreciated thanks!

Dak
2009-12-16, 22:00
@cenwesi - I got your PlaceShifter app running. Don't get too excited yet...it seems to use a bunch of native x86 shared libs, so there will probably be a loud bang when JNI tries to load them.

To test it, I need an example server to connect to....can you point me at one?

http://i48.tinypic.com/2cnutqg.png

cenwesi
2009-12-16, 22:04
omg...no way. It looks like it will work. once i get home i will create an account for you and give u access to see if u can pull up my recordings and movies :)

Xizor
2009-12-17, 08:16
Just inflate the tar.gz on your PC and use "scp -r" to copy it to your N900. Stick a "ln -s" symlink in your /usr/local/bin (may need to edit your path in /etc/profile)



Hi!

Could you clarify this a bit....I'm a total n00b when it comes to Linux. :o

hani1400
2009-12-17, 08:23
Hi!

Could you clarify this a bit....I'm a total n00b when it comes to Linux. :o
Yes clarify this a bit more for us linux noobs :D

kevloral
2009-12-17, 12:58
It's only a 90-day evaluation jre, sadly...

But does the JRE really stop working after 90 days? Or is it only the license stating that you shouldn't use it after that time?

Bratag
2009-12-17, 15:32
But does the JRE really stop working after 90 days? Or is it only the license stating that you shouldn't use it after that time?

The Java SE for Embedded 6 releases are intended solely for evaluation purposes and will time out in 90 days. The software is free for development but requires a license and small royalty fee to redistribute as part of an embedded product. Please contact us for more information or to request the latest official release.

Thats what It says - does mention timing out after 90 days.

Dak
2009-12-17, 16:27
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 :)

Rob1n
2009-12-17, 16:36
I'm not sure you're helping there - most n00bz won't have ssh server installed & configured on their N900!

You'd be better copying the archive straight onto the N900 (connect via USB and choose mass storage mode, copy the file over, then disconnect). Open up an X Terminal, then do:

sudo gainroot
cd /opt
tar xzf /home/user/MyDocs/*.tar.gz

SubCore
2009-12-17, 16:38
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.

this requires an OpenSSH daemon running on the N900. If you don' know what that means or don't want to install yet another application, you can just copy the ejre folder with the (windows) GUI onto the tablet, and use XTerminal to move it from /home/user/MyDocs/ejre to /opt

the command(s) would look like this:


sudo gainroot
mkdir /opt/java
cd /home/user/MyDocs
mv ejre1.6.0_10 /opt/java

i'm sorry i forgot that mydocs is of course a vfat and will loose needed executable flags.
the above is wrong, do this instead:
copy the .tar.gz (or .tgz, haven't d/l it yet) on the n900, then
sudo gainroot
cd /home/opt/java
tar -xzvf /home/user/MyDocs/<filename>.tar.gz

btw, /home/opt and /opt are the same.

cenwesi
2009-12-17, 16:48
thanks... will forward this to the SageTV company...hopefully they can do this for me and others :)

Xizor
2009-12-17, 16:58
OK n00bz...listen up ;)

....

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

Ok, I'm ready for the next part of this lesson. :)

Dak
2009-12-17, 17:12
Next, you'll need to install a link to the main java program, so that when you open an xterm and type "java" it knows what you're talking about.

If you've followed my choice of folder location, the java program is located in /home/opt/java/ejre1.6.0_10/bin/java

Open an xterm and use "sudo gainroot" again.

Then type "ln -s /home/opt/java/ejre1.6.0_10/bin/java /usr/local/bin/java"

This will create a "symlink" (a Symbolic Link....basically a pointer to a file or folder) in /usr/local/bin. You could create it in /usr/bin, but I prefer to keep things separate.

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.

Xizor
2009-12-17, 18:05
Next, you'll need to install a link to the main java program, so that when you open an xterm and type "java" it knows what you're talking about.

...

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.

Hmm, I did as you instructed, but when I open xterm and type "sudo gainroot" followed by "java -jar test.jar" I get:

/bin/sh: java: not found

or did I mess something up. :o

(when I try "java" without "sudo gainroot" I get "permission denied" but that is to be expected?)

Even if I go directly to /home/opt/java/ejre1.6.0_10/bin and type "java" I get "/bin.sh: java: not found"

SubCore
2009-12-17, 18:57
Even if I go directly to /home/opt/java/ejre1.6.0_10/bin and type "java" I get "/bin.sh: java: not found"

when you're in /home/opt/java/ejre1.6.0_10/bin, did you type just "java" or "./java" ? note the dot and the slash at the beginning.
unlike windows, linux shells usually don't have the current path in the PATH variable.

Xizor
2009-12-17, 19:37
when you're in /home/opt/java/ejre1.6.0_10/bin, did you type just "java" or "./java" ? note the dot and the slash at the beginning.
unlike windows, linux shells usually don't have the current path in the PATH variable.

If I'm in /home/opt/java/ejre1.6.0_10/bin and type "./java" I get "permission denied" ? (And this happens as root )

I think you also have to kill and restart your xterm so the new profile path gets refreshed...you can test this by just typing "ja" then hitting tab...it should autocomplete to "java"

The autocomplete works with java but only without "sudo gainroot".

There's got to be some silly mistake I've made, but I just can't seem to figure it out... :(

fabolousv
2009-12-17, 19:41
can someone try nav4all? this might enable turn-by-turn navigation on the n900

Diavoli
2009-12-17, 19:47
Sorry I thought NinjaVideo.net had a java applet that you need to launch first in order to watch the streaming content on there????

Dak
2009-12-17, 19:51
@Xizor - Did you download the archive onto a Windows PC, expand it, then copy it across? If so, you may have lost permissions...

Type "ls -al /home/opt/java/ejre1.6.0_10/bin" into an xterm

On the left-hand side, you should see a column of permission data ("r", "w", "d" etc) ... the files should all have "-rwxr-xr-x" for their permissions.

SubCore
2009-12-17, 19:53
If I'm in /home/opt/java/ejre1.6.0_10/bin and type "./java" I get "permission denied" ? (And this happens as root )

ah, of course.

because you extracted it under windows and copied it to MyDocs first, the executable flags were lost. MyDocs is a vfat partition and doesn't support executable flags.

my suggestion to just copy the extracted content over wasn't so good after all.

you better delete the folder ejre1.6.0_10 (run "rm -rf ejre1.6.0_10" as root when in the directory /home/opt/java) and do this instead:

copy the .tar.gz (or .tgz, haven't d/l it yet) on the n900, then
sudo gainroot
cd /home/opt/java
tar -xzvf /home/user/MyDocs/<filename>.tar.gz

now every file should have their proper flags and permissions :)

the changes in /etc/profile and the symlink won't be affected if you just delete the folder btw, so you don't have to do that again :)

Xizor
2009-12-17, 20:37
Thank you both SubCore and Dak for the help! Now it's working. :)

Although I don't seem to be able to run even the simplest Swing- app => The ever annoying HeadlessException appears. :(

Dak, could you post the sample Java code for the Java Swing app you used for testing this rte?

qole
2009-12-17, 20:43
Thanks for the instructions, Dak!

Just a note, the N900 has tar with gzip on it. So you can "tar xzvf" on your device without a problem. It avoids the permissions problems of the other methods.

Also /home/user/opt is also just /opt so you can shorten your path a bit.

Is there a specific reason why you choose /usr/local/bin for your symlink, instead of /usr/bin? Wouldn't it be easier to just add it to /usr/bin?

Dak
2009-12-17, 20:53
I tend to leave /usr/bin for "system" kinda stuff, and put all my personal meddling into /usr/local/bin

It's just the way I like to keep my hackery separate, that's all.

qole
2009-12-17, 21:29
Wow.

The headful Java works amazingly well.

I tried the Java 2D demo (http://java.sun.com/products/java-media/2D/samples/index.html), and it worked at a reasonable speed! Not as fast as my desktop, but I didn't say, "oh man, this is slow" or anything...

If Sun will let N900 owners use this without trial limitations, then we really do have a viable Java SE for the N900.

Now to try Opera Mini (http://www.opera.com/mini/download/) via MicroEmulator (http://www.microemu.org/) ;)

(EDIT: Using this method (http://talk.maemo.org/showthread.php?p=238027#post238027))

SubCore
2009-12-17, 21:33
Is there a specific reason why you choose /usr/local/bin for your symlink, instead of /usr/bin? Wouldn't it be easier to just add it to /usr/bin?

makes it easier to backup & restore changes after a firmware upgrade or similar. you just have to remember /usr/local instead of every single one :)

qole
2009-12-17, 22:23
Update: Yes, Opera Mini runs fast enough, but it seems to have some interaction bugs under this system... Can't seem to enter text into a text field properly. The OK button doesn't do anything...

patstew
2009-12-17, 22:43
Update: Yes, Opera Mini runs fast enough, but it seems to have some interaction bugs under this system... Can't seem to enter text into a text field properly. The OK button doesn't do anything...

Have you tried any J2ME games with MicroEmulator?

qole
2009-12-17, 22:50
Nope. Not going to either ;)
I played OpenArena on my N900 on the bus last night. Mobile phone games just don't do it for me.

j.s
2009-12-18, 00:43
I'm sorry, but you're just wrong. The N900 busybox tar very definitely does support gzip compression. It doesn't support bzip2 compression, however.

Type tar at the command line; it lists [czxtv0] as the valid options.
OK. My mistake.
I had typed:

tar cvfz filename.tar.gz filename.ext

It complained of no file filename.tar.gz and created a tar file named z. It looks like f must be the last option. Every tar with gzip support that I have used before was fine with z being the last option whether creating, listing, or extracting from gzipped tar files.

I will delete my post.

Xizor
2009-12-18, 12:47
This is indeed great stuff...made a quick Swing app that fetches some train timetables from a certain WWW-page. Works like a charm! :)

Dak, have you had any luck registering the jar files so that one could start a Java app more easily?

Xizor
2009-12-18, 17:14
@Xizor - I'm still tinkering with that 'auto run' mechanism.

...

PS. Did you originally download the wrong JRE? Is that why you got the "Headless" exception?

Yeah, I had the wrong JRE...I was sure I downloaded the right one, but maybe it's time to start thinking about them glasses. :D

One thing I noticed is that the java application (using Swing) takes a really long time to start (almost 10 seconds). There probably is nothing that can be done to speed this up....

Xizor
2009-12-18, 18:15
Yep...that's part of the overhead involved in setting up the JVM, loading all the bytecode, initializing it and then letting it run. I guess it's up to Sun to optimize this process, but I wouldn't expect significant improvement unless they can implement some safe 'lazy optimization' for startup.

But it's a 600MHz ARM chip....whaddayagonnado? Imagine how treacly that same code would run on a 600Mhz pentium ;)

The important thing is that it runs respectably well once it is loaded. I'm pleased with it.

I think this leads to the inevitable conclusion that Java on the N900 should be used sparingly and with due consideration to the bandwidth limits we face.

My strategy, if I use it at all, will be to prefer crafting very thin, lightweight clients that provide a visual surface for a native core...accessed via JNI/sockets.

You are absolutely right...you can't do wonders with the given hardware and once the app is running the performance seems to be quite good.

It would be really interesting to see a java application using the phones native API's via JNI. :)

hypnotik
2009-12-18, 18:33
Nope. Not going to either ;)
I played OpenArena on my N900 on the bus last night. Mobile phone games just don't do it for me.

How is the game play without a mouse? I could never play quake without mouseview. ..

Aranel
2009-12-19, 23:05
with auto-aim ofc =)

rlinfati
2009-12-20, 00:04
http://farm3.static.flickr.com/2641/4198751218_35cb595128_o.png

yataaaaaaaaaaa

wire-less
2009-12-20, 13:43
Wow.

The headful Java works amazingly well.

I tried the Java 2D demo (http://java.sun.com/products/java-media/2D/samples/index.html), and it worked at a reasonable speed! Not as fast as my desktop, but I didn't say, "oh man, this is slow" or anything...

If Sun will let N900 owners use this without trial limitations, then we really do have a viable Java SE for the N900.

Now to try Opera Mini (http://www.opera.com/mini/download/) via MicroEmulator (http://www.microemu.org/) ;)

(EDIT: Using this method (http://talk.maemo.org/showthread.php?p=238027#post238027))

Tried it today. Works like a charm. I sent an email-feedback to sun. Hope they release this for Maemo someday.
Any Idea how to give the full screen to the java app? Needs some communication with the window-manager?

rlinfati
2009-12-20, 15:31
http://rapidshare.com/files/323520220/javame_0.1-1_armel.deb.html

MD5: CF9852C9725FAEAD3035E4F13AFA0380

Java se for armv6 + microemulator + icon ( .desktop file )

only need a .jar/.jad.... and go!

g0dzilla
2009-12-20, 17:27
http://rapidshare.com/files/323520220/javame_0.1-1_armel.deb.html
please add mirror

CrckMc
2009-12-20, 17:46
please add mirror

hope it helps
http://netload.in/dateilZgA2SUinb/javame_0.1-1_armel.deb.htm

this is the same as above

g0dzilla
2009-12-20, 17:47
hope it helps
Big Tnx!!!

rlinfati
2009-12-20, 17:51
ahhh...
the java is a trial of 90 days... but, you can reset... uninstalling, and installing again :)

( at the first run of java, it change a file... )

g0dzilla
2009-12-20, 18:01
I rebooted during the installation ((

beli
2009-12-21, 20:41
I folowed the instructions of Dak but when I try to run a jar i get:

An unexpected error has been detected by Java Runtime Environment:
SIGBUS (0x7) at pc=0x4007ae44, pid=2016, tid=1088148624
Java VM: Java Hotspot(TM) Client VM (11.0-b15 mixed mode linux-arm)
Problematic frame:
V [libjvm.so+0x5ee44]

the .tar I installed is : ejre-1_6_0_10-ea-b39-linux-armv6-vfp-eabi-min-eval-30_jul_2009.tar.gz (from Dak's link)

Anyone had the same error or has any clue of the cause?

Tnx

Dak
2009-12-21, 20:51
That seems like a problem with the jar, not the JVM....

Do you have a simple java app jarfile to run to test the JVM? REALLY simple....like just creating an application window.

Bratag
2009-12-21, 21:27
ahhh...
the java is a trial of 90 days... but, you can reset... uninstalling, and installing again :)

( at the first run of java, it change a file... )

Couldnt you just keep a copy of the file with the old date and copy that back in place when the timer runs out?

aspidites
2009-12-22, 01:41
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


Half true. You can, instead of an IP address, use your N900's host name. From xterm on your N900:
hostnameBy default, this returns "Nokia-N900-42-11"

Your scp command on your host computer then becomes:
scp -r ejre1.6.0_10 root@Nokia-N900-42-11/home/opt/javaIf you are like me, names are easier to memorize than numbers (assuming you aren't being lazy and using the history, lol)

At any rate, pretty interesting that you got the jre running.

Dak
2009-12-22, 01:46
Half true. You can, instead of an IP address, use your N900's host name.

Half true. You will need to enter your N900 hostname into your "/etc/hosts" file for your method to work.

Your PC will not know WTF "Nokia-N900-42-11" means, otherwise.

Please don't post misleading information. Think it through and double-check your work. There are many new linux enthusiasts here that could be unnecessarily confused by such things.

aspidites
2009-12-22, 02:29
Half true. You will need to enter your N900 hostname into your "/etc/hosts" file for your method to work.

Your PC will not know WTF "Nokia-N900-42-11" means, otherwise.

Please don't post misleading information. Think it through and double-check your work. There are many new linux enthusiasts here that could be unnecessarily confused by such things.

I didn't make any modifications to my /etc/hosts file and my computer instantly recognized "Nokia-N900-42-11. In fact, the only thing in my /etc/hosts file is this:
127.0.0.1 localhost.localdomain localhost my_host_nameWhile I appreciate your enthusiasm for wanting to help people, I would appreciate it if you didn't ASSUME that I a) didn't check my work and b) I am unconcerned about how my posts will affect other readers.

Dak
2009-12-22, 03:12
I knew your method wouldn't work, but I tested it anyway (Fedora12 box)....and sure enough, it didn't work.

It is clear that you didn't check your work because you don't understand WHY it worked for you. If youi're going to suggest things like this, you should explain them fully.

How is the name ""Nokia-N900-42-11" being correctly resolved to an IP address on your machine/network?

aspidites
2009-12-22, 04:50
I knew your method wouldn't work, but I tested it anyway (Fedora12 box)....and sure enough, it didn't work.

Works for me:
http://www.screencast-o-matic.com/watch/cQl3f6hus


It is clear that you didn't check your work because you don't understand WHY it worked for you.
I do know why it works. That it fails to work on your machine is no indication of my (in)ability to check my work.


If youi're going to suggest things like this, you should explain them fully.

How is the name ""Nokia-N900-42-11" being correctly resolved to an IP address on your machine/network?

Much like you explained how "scp" magically worked on your N900? Much like you explained how to use the alternative archiving program that you pointed to?

I tend not to explain things that aren't going to damage a person's computer. And don't mind answering questions that arise because of some element that I introduced into a conversation.

At any rate, for the sake of not confusing things further and attempting to make this thread at least some-what OP related, two things that I believe make it work on my box and not yours are:
1) I have DHCP enabled
2) both my laptop and N900 are connected on the same wifi network.

That being said for the sake of clarity, my original post should have been something like this:

"If both your N900 is connected to your home wifi connection, you should be able to replace the IP address with the host name without modifying any files on your system."

Texrat
2009-12-22, 04:59
Ok, guys, you're BOTH doing good work here. ;)

Dak
2009-12-22, 05:23
I too have DHCP and wifi....yet it doesn't work. I understand why it doesn't work and don't expect it to work. This is why I raised the warning flag about your suggestion - on most stock systems it likely won't work either.

There is more to your config....you really should explain what. DNS server? NIS? Funky WINS router etc?

qole
2009-12-22, 05:45
Dak, aspidites, seriously. Break it up.

This is way off topic anyway, since using scp to transfer the files from a desktop is not the best way to do this. Go to the Embedded Java web page with your N900's browser and download the file directly to your N900, then follow Rob1n's instructions (http://talk.maemo.org/showthread.php?p=432096#post432096) for extracting the files to your /opt directory.

But if you really insist on using scp, try to ping your N900's host name. If that doesn't work, use the IP address (as shown by a couple of widgets you can get for your n900's desktop). It just isn't a big deal.

Dak
2009-12-22, 06:09
I tend to download everything to my repository server - huge storage - hence my initial use of scp.

But you're right....downloading directly to the N900 and using "tar -xzvf" is far more direct.

Anyway, I'm still fubar with the jarfile mime registration....and I'm working on some crude java benchmarking app to see how hard we can push this baby.

Still no word from Sun regarding licene/royalties.

beli
2009-12-22, 09:14
That seems like a problem with the jar, not the JVM....

Do you have a simple java app jarfile to run to test the JVM? REALLY simple....like just creating an application window.

The jar I tested with was a simple Hello World program ... it works on my laptop ...

*edit*
I also tested it with the Java2Ddemo from the sun site ... same error.

Detailed output:
#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGBUS (0x7) at pc=0x4007ae44, pid=1784, tid=1088148624
#
# Java VM: Java HotSpot(TM) Client VM (11.0-b15 mixed mode linux-arm)
# Problematic frame:
# V [libjvm.so+0x5ee44]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

*edit*

Dak
2009-12-22, 21:39
Sorry beli, I cannot debug your java app via this forum. All I can tell you is that I have never seen such an error....yet.

Can you make the jarfile & source available for download in a zipfile or something? I'll happily test it on my N900 for you.

qole
2009-12-22, 21:41
I can say that the Java 2D demo works fine on my N900. In fact it works surprisingly well!

beli
2009-12-23, 10:14
Ok, I reflashed my OS and now Java2D demo works as well. Guess something was wrong with my system ...

pinguino89
2010-01-04, 18:21
http://rapidshare.com/files/323520220/javame_0.1-1_armel.deb.html

MD5: CF9852C9725FAEAD3035E4F13AFA0380

Java se for armv6 + microemulator + icon ( .desktop file )

only need a .jar/.jad.... and go!

Hi!!! I have an n800, downloaded the deb and installed flawlssy (I know it's meant for the n900...)

but no jad files work!! It gives me a lot of errors...

why?

rlinfati
2010-01-05, 07:43
http://www.ubuntu-pics.de/bild/36637/linfati800_4Zx0xT.png

http://www.ubuntu-pics.de/bild/36638/linfati900_pBga6T.png

qole
2010-01-05, 07:47
rlinfati: can you enter text into a text field on a web page with Opera Mini? The "OK" button just doesn't work for me...

tousisd
2010-01-05, 07:56
will it be in a repo?

myk
2010-01-05, 16:41
I just installed this from the .deb file, and tried to run google maps from a JAD file. It is running in a tiny area (144wide?) and I can't click the 'accept' button, but it runs.

Any chance of it really working? Can ME access the GPS?
It would be nice to have, even without touchscreen. Anything is better than Ovi Maps.

rlinfati
2010-01-05, 18:37
@qole: on n900 yes, on n800... untested..

@tousisd no, sorry

@myk no gps

elliotshepherd
2010-01-06, 07:09
Wow.

WOW.

As a java developer, I'm suddenly far more excited by my N900 (which i admit had been pissing me off a bit :).

http://learnnowbiz.com/elliot/Screenshot-20100106-180622.png

It's slow... but that doesn't matter. This is a desktop java swing app (frostwire) running on my phone. Without any changes.

(though a few bugs... it doesn't seem to take control on the keyboard... so typing anywhere brings up the contact list search!)

I think perhaps ill get jetty running, and write myself a web app to remote control my phone! (send/receive sms... take a picture... get the gps location... wipe the disk... etc)

Fun =)

HtheB
2010-01-08, 13:32
how about porting pspkvm to N900?

pspkvm is a JavaME emulator for the PSP.

Link:
http://sourceforge.net/apps/trac/pspkvm

rlinfati
2010-01-08, 14:02
psp over javeme over microemulator over javase over maemo ?

HtheB
2010-01-08, 14:16
psp over javeme over microemulator over javase over maemo ?

O_o???? hmmm???

modeless
2010-01-08, 20:55
Has anyone tried out the optimized OpenJDK for ARM on the N900 provided by Cambridge Software Labs (see http://www.camswl.com/openjdk/)? Would be interesting to hear whether it's running and how the performance is. Unfortunately I do not have a N900 yet to test it myself.

qole
2010-01-08, 22:59
rlinfati:

HtheB is suggesting a pspkvm port as a replacement for Microemulator on JavaSE.

pspkvm is itself a port of the PhoneME (https://phoneme.dev.java.net/) software. Porting directly from PhoneME to Maemo is probably a better bet, rather than going from pspkvm.

But this is a good idea, actually....

It looks like the current version of PhoneME Feature, MR4, isn't available for Linux/ARM, you'd have to try building it yourself from source.

The only Linux/ARM binaries I could find for this are an MR2 build from 2007, which is really really old (N800 days).

I think someone should try to build the Feature MR4 software from source (http://download.java.net/mobileembedded/phoneme/feature/phoneme_feature-mr4-rel-src-b01-20_apr_2009.zip) (or from the source repo (https://phoneme.dev.java.net/source/browse/phoneme/)) using this guide (http://java.sun.com/javame/reference/docs/sjwc-2.2/pdf-html/html/build/index.html).

It sure would be "cleaner" to get PhoneME working rather than using Microemulator on top of JavaSE.

Olle
2010-01-10, 13:00
Has anyone tried out the optimized OpenJDK for ARM on the N900 provided by Cambridge Software Labs (see http://www.camswl.com/openjdk/)? Would be interesting to hear whether it's running and how the performance is. Unfortunately I do not have a N900 yet to test it myself.

I've tested them and they work,
tested it with the tripleA-Client but dont know if there is a performance boost to the embedded Java from sun. need more testing

but one improvement will be the license issue

qole
2010-01-10, 20:15
I agree with Olle, the Cambridge binaries work somewhat, but they aren't nearly as polished or complete as the Sun binaries. But that's been my experience with OpenJDK vs. Sun Java on all platforms.

CormacB
2010-01-11, 10:16
Any chance of a rehost of the microemulator deb? I got the jre and microemu installed myself, but launching it from the command line is a pain. Also do you have a device config that fits the screen properly?

Olle
2010-01-11, 10:48
You can build your own Shortcut
HowTo is here (http://talk.maemo.org/showthread.php?t=35858)

€ somewher is explaind where you can hide the stausbar in xTerminal
combined in a script it should work

a-rohde
2010-01-11, 10:58
Got it to work too. Thank's DAK for the nice instructions.

Now I have one question which i don't know should be solved in java or linux. Most of my Swing GUI's are created in horisontal mode, but when I launch them on the phone offcourse they will be launched in landscape and become scaled in the wrong way.

Doe's anyone know how to rotate the app 90 degrees, still making the buttons and so work?

shep
2010-01-12, 10:31
Thanks for the great work everyone.

I have copied the ejre-1_6_0_10-ea-b39-linux-armv6-vfp-eabi-headless-eval-30_jul_2009.tar.gz file to my N900, then I followed the instructions to extract it.

sudo gainroot
mkdir /home/opt/java
cd /opt/opt
tar xzf /home/user/MyDocs/*.tar.gz

Then I typed
ln -s /home/opt/java/ejre1.6.0_10/bin/java /usr/local/bin/java

I edited my /etc/profile and added the :/usr/local/bin to the export PATH= line.

When I go into XTERM without doing sudo gainroot now and type java I get an error "Java SE Embedded Evaluation Version Initialization Error...try again as root". But, when I sudo gainroot and type java I get the message "/bin/sh: java: not found"

Any ideas?


Also...on the J2ME front, I downloaded the javame_0.1-1_armel.deb file today and tried to install it, but Red Pill Mode is gone from the fireware now! Anyone know how I install a .deb file without Red Pill mode?


Thanks,

Shep

mankir
2010-01-12, 10:40
Eval-Version is useable for half a year or 5 months, i guess!

beli
2010-01-12, 11:25
Thanks for the great work everyone.

I have copied the ejre-1_6_0_10-ea-b39-linux-armv6-vfp-eabi-headless-eval-30_jul_2009.tar.gz file to my N900, then I followed the instructions to extract it.

sudo gainroot
mkdir /home/opt/java
cd /opt/opt
tar xzf /home/user/MyDocs/*.tar.gz

Then I typed
ln -s /home/opt/java/ejre1.6.0_10/bin/java /usr/local/bin/java

I edited my /etc/profile and added the :/usr/local/bin to the export PATH= line.

When I go into XTERM without doing sudo gainroot now and type java I get an error "Java SE Embedded Evaluation Version Initialization Error...try again as root". But, when I sudo gainroot and type java I get the message "/bin/sh: java: not found"

Any ideas?


Also...on the J2ME front, I downloaded the javame_0.1-1_armel.deb file today and tried to install it, but Red Pill Mode is gone from the fireware now! Anyone know how I install a .deb file without Red Pill mode?


Thanks,

Shep

Quite logical: you exported the /usr/local/bin/ folder for the default user, but not for the root ...

You could run it as root by typing the full path instead of just 'java'

Another option is to make the default user owner of the ejre directory, then the user has all permissions. You can do this by the command
chown -R user:users /home/opt/java/ejre1.6.0_10

Hope this helps

sxg75
2010-01-12, 11:42
Question to the posted .deb file above - when there's JSE why would someone need MicroEmulator from that package as well? Thanks in advance!

Olle
2010-01-12, 11:46
Also...on the J2ME front, I downloaded the javame_0.1-1_armel.deb file today and tried to install it, but Red Pill Mode is gone from the fireware now! Anyone know how I install a .deb file without Red Pill mode?


in terminal under root
with dpkg -i javame_0.1-1_armel.deb

and look what $PATH displays under user and root

€ @beli
the /etc/profile-file should work as root&user

shep
2010-01-12, 12:03
Question to the posted .deb file above - when there's JSE why would someone need MicroEmulator from that package as well? Thanks in advance!

I have some old J2ME apps that I had written that I want to continue using...didn't think they would work under the J2SE.

sevdali
2010-01-12, 12:57
I'm very excited to hear that Java (not j2ME) is working on N900.

My question is:

Why Nokia is not installing this officially to every N900?

It will be good for the marketing (which shows the power of n900 it is not a toy). It will be good for us (Java users and developers). Why should we try hacky ways to install it? Why should we fear that what will happen after 6 months of evaluation time?

If it is about money, I believe Sun (now Oracle) will license it less than $9.99 per device.

How can we let Nokia that we want Java in N900.

Any thoughts?

tomchiverton
2010-01-12, 13:10
Is there a bug and/or brainstorm for this ?

SubCore
2010-01-12, 13:20
Is there a bug and/or brainstorm for this ?

yes, there are brainstorm proposals for Java ME / Java SE Runtimes for the N900.

they are linked to in this post (http://talk.maemo.org/showpost.php?p=421711&postcount=149).

shep
2010-01-12, 15:24
Hi All,

What a great community!

Thanks for the help everyone, I have both J2SE and the J2ME microemu working now.

My J2ME jars do not load under J2SE (expected), they do load under J2ME but I cannot seem to input data (especially numerals).

Any ideas?

I have shared the 3 jar & jad files in question here: http://workspace.office.live.com/?id=pACQ0MmM3MjMzMC1hMDdiLTQ4MmQtOGMwNS1hNDExNzU5M TRlMjEAezgPTVBL1e9IuLhFwjYCnO99ABdzdGVwaGVuLmxhY2V 5QHlhaG9vLmNvbQAAABQsV6Qky9ti0zcWbVNZb75pHNNpXAAA&cid=40

Thanks,

Shep

qole
2010-01-12, 17:33
shep:

I think I have a similar problem with MicroEmu. I can start Opera Mini, but when I try to enter any kind of text (for example, to log into Facebook), I am given a text entry box. I can enter text into this box, but the OK in the lower right corner of the box doesn't do anything.

Now, if this isn't your problem, if it is that your keyboard input doesn't seem to work, try the keyboard input focus hack. When your app is on the screen, press the power button. When the menu pops up, press somewhere outside the menu so that it goes away. That usually works to give keyboard to the app.

shep
2010-01-12, 21:41
Hi Qole, I think I must be experiencing the same issues as you. I can type text (characters, never numbers) into text boxes, but button clicks and navigation menus are non-responsive.

I tried the hack you mentioned, but no luck.

Thanks for the suggestion.

Shep


I think I have a similar problem with MicroEmu. I can start Opera Mini, but when I try to enter any kind of text (for example, to log into Facebook), I am given a text entry box. I can enter text into this box, but the OK in the lower right corner of the box doesn't do anything.

gowen
2010-01-13, 09:41
I haven't tried this myself with Java on the N900, but for SDL based apps and some others to get numbers you have to hold the function key down while you press the number. Sorry if you've already tried this.

sxg75
2010-01-14, 23:39
Someone tried getting to run Dalvik VM on Java (http://code.google.com/p/android-dalvik-vm-on-java/) on top of Sun Java SE already?

Currently supported functions

* Dalvik Execution file format (.dex)
* Complete Dalvik instruction set
* J2ME CLDC API
* Multi-thread (include synchronized block, wait and notify)

owerlord
2010-01-15, 15:13
can Runescape java based game be played with this? can anyone try to load the game up, no need to play it.

i would love to know if its possible =)

CormacB
2010-01-15, 15:28
Someone tried getting to run Dalvik VM on Java (http://code.google.com/p/android-dalvik-vm-on-java/) on top of Sun Java SE already?



Without the Android libraries ported to plain Java it is a bit pointless.

sjgadsby
2010-01-15, 15:50
Why Nokia is not installing this officially to every N900?

Please also see comments #5 (https://bugs.maemo.org/show_bug.cgi?id=2695#c5) and #9 (https://bugs.maemo.org/show_bug.cgi?id=2695#c9) to bug #2695 (https://bugs.maemo.org/show_bug.cgi?id=2695). Though the bug has been closed, you can still vote for it. Voting up a closed bug is a long shot to be sure, but it does appear to have some influence on occasion.

cipper
2010-01-15, 15:55
I too have DHCP and wifi....yet it doesn't work. I understand why it doesn't work and don't expect it to work. This is why I raised the warning flag about your suggestion - on most stock systems it likely won't work either.

There is more to your config....you really should explain what. DNS server? NIS? Funky WINS router etc?

on windows pc's usually works flawlessly, on linux depends on wether you have installed winbind or not:
apt-get install winbind

the winbind daemon is able to talk with the router and resolve the names.
It's Micro$oft technology, so it's usually not installed by default...

new_bee
2010-01-18, 09:15
hi there,
after downloading a few .jar apps in the ejre1.6.0_10/bin folder, when ever i run, "./java -jar *.jar" i m getting "Failed to load Main-Class manifest attribute from *.jar
can some one help me here.

beli
2010-01-18, 13:19
You have to launch one file instead of *.jar

"./java -jar foo.jar" with foo the name of the jar file you want to launch.

new_bee
2010-01-18, 22:22
yeh I just typed *.jar as an example. I am putting the complete file name there.

CormacB
2010-01-19, 00:08
Many java applications are not packaged as runnable jar files. You will need to run something like java -cp x.jar:y.jar com.company.program.MainClass

RE Runescape; the java plugin included in the embedded JRE doesn't seem to work with MicroB or Firefox, so there is no way to run applets on a webpage right now and that is how it runs. Possibly it might work out of appletviewer but I doubt it. Also I think Runescape uses OpenGL so there would be code changes required to use OpenGL ES as well as porting work for the JOGL library.

2bli2
2010-01-19, 00:12
I think perhaps ill get jetty running, and write myself a web app to remote control my phone! (send/receive sms... take a picture... get the gps location... wipe the disk... etc)

Got Jetty up and running myself yesterday (see below! :)) Not tried to do anything with it really though. Absolutely love this phone! :D

http://twitpic.com/show/full/yjssb
http://twitpic.com/show/full/yju8i

By the way, for the people struggling to get java executing after a sudo gainroot, you need to edit the gainroot script in /usr/sbin and add the appropriate PATH.

podgeandrodge
2010-01-24, 09:17
Hi guys, I just spotted this thread and thought someone might know something that could help me..


this is a link to a Jar file (J2ME Eagle Eyes) I used when setting up remote viewing of CCTV on the Nokia N95 - I presume these Jar files won't work on the N900 being a different system altogether?

Thanks for any help.

http://www.lakson.com.sg/cpcam/


But all I really want to do is get the N900 to play the streaming .mov file at my ip address - instead I just get a "mediaplayer" icon which, if i click it, tries to save the .mov file to the harddrive of the N900 instead of playing the live video...

floweih
2010-01-25, 15:59
Hello,

I installed the Sun Java Se for embedded like Dak described. I tried to run the application "Db Railnavigator" (can be downloaded here: http://persoenlicherfahrplan.bahn.de/bin/pf/help.exe/dn?tpl=railnavigator ) but it did not work. The error-message was:

java -jar /home/user/MyDocs/javaprogramme/dbmidlet.jar
Failed to load Main-Class manifest attribute from
/home/user/MyDocs/javaprogramme/dbmidlet.jar
Nokia-N900-42-11:~#

Please can anybody help?

Greetings Bernd

wjbaird
2010-01-25, 16:13
@floweih

That's a midlet - so you need a J2ME (Java Mobile Edition) environment to run it in.

What is being discussed here is a J2SE (Java Standard Edition) environment.

I'm not sure what the status is on a J2ME environment for the N900.

CormacB
2010-01-25, 18:03
java -jar /home/user/MyDocs/javaprogramme/dbmidlet.jar
Failed to load Main-Class manifest attribute from
/home/user/MyDocs/javaprogramme/dbmidlet.jar
Nokia-N900-42-11:~#


To run a midlet:
1. Install JRE
2. Go to http://www.microemu.org/ and download the zip file
3. Unzip the file
4. Go to folder in terminal and run java -jar microemulator.jar
5. Get out your stylus and used the menu to open dbmidlet.jar

You can also use the devices menu to select the resizable device which uses the screen a bit better. Unfortunately the "scale" option seems to be very slow.
I have peggle working for me, but with no sound.

fred123
2010-01-26, 01:59
Just downloaded JRE from sun licence says 90 day trial, hope there will be a better solution developed by then.

Ulrik
2010-01-26, 13:59
Is it possible to install Java on the N900 without the 90-day trial period?

floweih
2010-01-26, 13:59
Hello,

the microemulator does not work. The error message is:

java -jar /home/opt/microemulator-2.0.4/microemulator.jar
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:60 7)
at javax.swing.plaf.basic.BasicLookAndFeel.initialize (BasicLookAndFeel.java:1720)
at javax.swing.UIManager.setLookAndFeel(UIManager.jav a:912)
at javax.swing.UIManager.<clinit>(UIManager.java:245)
at org.microemu.app.Main.main(Main.java:1024)
Caused by: java.lang.UnsatisfiedLinkError: Native library `gtkpeer' not found (as file `libgtkpeer.so') in gnu.classpath.boot.library.path and java.library.path
at java.lang.Runtime.loadLibrary(Runtime.java:763)
at java.lang.System.loadLibrary(System.java:670)
at gnu.java.awt.peer.gtk.GtkToolkit.<clinit>(GtkToolkit.java:177)
at java.lang.VMClass.forName(Native Method)
at java.lang.Class.forName(Class.java:233)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:58 3)
...4 more
Nokia-N900-42-11:~#

Which Version of the java jre is the right one? The hard floating or the soft floating? Who can please help?

Greetings

Wonko
2010-01-26, 23:04
Is it possible to install Java on the N900 without the 90-day trial period?

You could e.g. use the openjdk provided on the following website:
http://www.camswl.com/openjdk
Someone else posted that link already earlier in the thread but i am kinda weak in remembering names. ;)

It works quite well for me here.

fred123
2010-01-27, 02:17
Using

ejre-1_6_0_10-ea-b39-linux-armv6-vfp-eabi-headless-eval-30_jul_2009.tar.gz

microemulator-2.0.4

Runing the command
Nokia-N900-51-1:/home/opt/java/microemulator-2.0.4# java -jar microemulator.jar

I get error below

Exception in thread "main" java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(Graphic sEnvironment.java:159)
at java.awt.Window.<init>(Window.java:414)
at java.awt.Frame.<init>(Frame.java:403)
at java.awt.Frame.<init>(Frame.java:368)
at javax.swing.JFrame.<init>(JFrame.java:163)
at org.microemu.app.Main.<init>(Main.java:772)
at org.microemu.app.Main.<init>(Main.java:769)
at org.microemu.app.Main.main(Main.java:1029)

Any suggestions?

fred123
2010-01-27, 02:51
OK found problem was sing headless jre.

Now trying to get my traffic tv app to run, is there any way of changing the font size?

[DarkGUNMAN]
2010-01-30, 17:15
Wow.

The headful Java works amazingly well.

I tried the Java 2D demo (http://java.sun.com/products/java-media/2D/samples/index.html), and it worked at a reasonable speed! Not as fast as my desktop, but I didn't say, "oh man, this is slow" or anything...

If Sun will let N900 owners use this without trial limitations, then we really do have a viable Java SE for the N900.

Now to try Opera Mini (http://www.opera.com/mini/download/) via MicroEmulator (http://www.microemu.org/) ;)

(EDIT: Using this method (http://talk.maemo.org/showthread.php?p=238027#post238027))


Managed to get this running too - running OpenJDK and MIcroEmu. Created a Menu link which launches MicroEmu running Opera Mini 4.2, works as fast as I'd expect it from a J2ME comaptible phone.

I'm going to make an easier guide to follow for other people to implement. Only thing left would be to create a .deb file to automate the install.

2bli2
2010-01-30, 18:02
Is it possible to install Java on the N900 without the 90-day trial period?

No - but it's fairly easy to get around the 90-day trial period. Not sure of the legality of it, so not going to tell you exactly how :p Have a look for any hidden files in the JRE installation, though... ;)

[DarkGUNMAN]
2010-02-01, 11:39
Given MicroEmu and Opera Mini 4.2 on OpenJDK a good test this weekend using only a 2G connection. The experience is comparable to MicroB if you leave the screen effects enabled and navigate as you usually would. Though the zooming features aren't there it does come in handy when WiFi and 3G are not available.. Only thing about it is the font used by MicroEmu, I'd like to try and change it but I don't know where to edit this.

I did try using Opera Mini 5 beta, but this ran more sluggish..
Next test is to use J2SE as the Java base and see if it makes any difference.

In the main this would run better if J2ME was supported natively or through PhoneME, but this is the best work around so far.
----------

Back on topic it looks like OpenJDK is running fine. Assuming that Nokia won't provide native Java support at a later date, this should be made available as an install from the repository.

barteo
2010-02-02, 13:09
Hi all,

I'm a person behind the MicroEmu. I've been watching that forum from time to time. I've noticed there is significant interest in running Java ME applications on Maemo platform using MicroEmu.

I'm eager to help in making MicroEmu better for Maemo. What in your opinion is the most important to do?

myk
2010-02-02, 13:22
What in your opinion is the most important to do?

maps are lacking on Maemo, so the java version of google maps would be nice. How much is needed to get that working?

fred123
2010-02-02, 13:36
I have tried using it to run TrafficTv, I find that the font size is a little small.

if I can get that and maps working I could sell my n97!

kojacker
2010-02-02, 13:43
i would love to be able to run Java ME applications on the n900, it would be a brilliant feature to have It's great to see so much interest and keenness on the thread, looking forward to following along and seeing what y'all come up with :)

sxg75
2010-02-02, 14:56
Well if someone are supposed to express their wishes then ;)

Direct support of Location API (JSR-179) or Bluetooth API (JSR-82) would be good. Or if that's not possible, describe how or if OpenLAPI/Bluecove/ integration would be possible on maemo platform?

mikec
2010-02-02, 15:12
Hi all,

I'm a person behind the MicroEmu. I've been watching that forum from time to time. I've noticed there is significant interest in running Java ME applications on Maemo platform using MicroEmu.

I'm eager to help in making MicroEmu better for Maemo. What in your opinion is the most important to do?

Lots of people have asked for the java gmail client.

[DarkGUNMAN]
2010-02-02, 16:35
Hi all,

I'm a person behind the MicroEmu. I've been watching that forum from time to time. I've noticed there is significant interest in running Java ME applications on Maemo platform using MicroEmu.

I'm eager to help in making MicroEmu better for Maemo. What in your opinion is the most important to do?

Glad you popped in and are interested in improving this for N900! If possible could MicroEmu allow you to select a font which is used by the midlet. Also enable aa full screen option if possible

ofels
2010-02-02, 16:46
;507113']Glad you popped in and are interested in improving this for N900! If possible could MicroEmu allow you to select a font which is used by the midlet. Also enable aa full screen option if possible

I have not followed the whole thread but as MicroEmu seems to support jamVM and classpath (which are available at least for Diablo) it should be fairly straightforward to build jamvm, classpath, jikes and swt to get MicroEmu running under Fremantle without the need to fiddle around with OpenJDK: http://www.microemu.org/maemo/

gowen
2010-02-02, 19:25
Well if we are putting in requests I would really like to run the J2ME Audible Air client.

soeiro
2010-02-03, 03:15
You could e.g. use the openjdk provided on the following website:
http://www.camswl.com/openjdk


Two quick questions and a not so quick one:

1) I understood that this is not the full OpenJDK (no JIT) but a interpreted version of it. Is this correct?

2) Is there any one thinking of packaging it or another OpenJDK-based jvm to place it into extra-testing?

3) Does anybody know if that version of the OpenJDK will be enough to run Scala (language) applications? :D

Wonko
2010-02-03, 16:55
1) I understood that this is not the full OpenJDK (no JIT) but a interpreted version of it. Is this correct?

Yes, according to their website, it is without JIT. But they also say that this version gives reasonable performance even without JIT (they say something about "70-80% of the performance of a JIT"). I didn't do any benchmarks, i'm just happy having java on my N900. :)


2) Is there any one thinking of packaging it or another OpenJDK-based jvm to place it into extra-testing?

This would be a great thing! Btw there are also openjdk packages for debian armel available. Though i don't know if porting/using these for maemo makes sense or is feasible at all.


3) Does anybody know if that version of the OpenJDK will be enough to run Scala (language) applications? :D
Not me ;)

fred123
2010-02-03, 17:28
Does anyone know if there is a java version of google maps 3?

owerlord
2010-02-03, 18:34
can someone try Runescape java web browser based game be played with this? can anyone try to load the game up, no need to play it just load the game?

i would love to know if its possible =)

soeiro
2010-02-04, 12:12
can someone try Runescape java web browser based game be played with this? can anyone try to load the game up, no need to play it just load the game?

i would love to know if its possible =)

It depends. They usually package OpenJDK for debian systems in such a way that you can also install the java plugin for Firefox/Iceweasel. For Konqueror, you don't even need the plugin. It calls the JRE directly.

So, my guess is that it really comes down to the N900 browser. Does it support plugins like Firefox?

fred123
2010-02-04, 12:24
I does support firefox plugins and addons, but people seem to be having problems getting them to work.

soeiro
2010-02-04, 13:08
I does support firefox plugins and addons, but people seem to be having problems getting them to work.

For clarification.

I meant the Java plugin. In Konqueror, you just specify the location of the JVM runtime (java). In Firefox, on the other hand, you must specify the location of the Java plugin.

Hence, on some browsers you only need the Java runtime to be able to use Java Applets (inside browsers). In other browsers, you need the Java plugin, a separate package, for Java Applets to work.

owerlord
2010-02-04, 15:31
can someone test runescape pls???

fred123
2010-02-04, 17:12
Ok I'm using the sun embeded jre and have the java plugin enabled in microb.

If I load a page with an applet the page loads without any errors but the applet just shows as a black box, any suggestions

qole
2010-02-04, 23:07
Hi all,

I'm a person behind the MicroEmu. I've been watching that forum from time to time. I've noticed there is significant interest in running Java ME applications on Maemo platform using MicroEmu.

I'm eager to help in making MicroEmu better for Maemo. What in your opinion is the most important to do?

barteo: I would like to see input improved. When I try to log in to a web site with Opera Mini, I get a text box. I can enter text into this box, but I cannot submit it.

I would also like to see fonts improved. Some way to set font size would be nice, and it would be nice if the fonts were smoothly rendered.

Finally, I would love to see MicroEmu packaged for Maemo, with the OpenJDK included.

debernardis
2010-02-05, 06:24
...and I would like to be able to run ylld.jar.

Don't you know what is it? It's a java version of shazam id (the application who listens at music and tells you title, album and author). You can find it in several forums, either as ylld.jar or as yyld.jar (someone's typo).
I've tried it on an install of microemulator (the one you can download from maemo.ru, and where opera mini 4 works well) but yyld outputs some java errors from the terminal that I won't be able to understand in the next fifty years :)

barteo
2010-02-05, 12:52
Hi all,

Thanks for the feedback related to the MicroEmu. As you probably discovered yourself the manual at http://www.microemu.org/maemo is outdated and doesn't work at all. Now I'm trying to update that instruction and make it even simpler. When it starts working again we should have discussion on the plan what to do next.

At the moment I'm struggling to compile GNU Classpath 0.98 with the ECJ compiler. Maybe someone has done it before and can help me in that.

owerlord
2010-02-05, 13:01
It depends. They usually package OpenJDK for debian systems in such a way that you can also install the java plugin for Firefox/Iceweasel. For Konqueror, you don't even need the plugin. It calls the JRE directly.

So, my guess is that it really comes down to the N900 browser. Does it support plugins like Firefox?

so what does it mean? :o n900 browser needs to supports firefox plugin so it will work?

[DarkGUNMAN]
2010-02-05, 16:20
For some unknown reason, the font used by MicroEmu has changed to Courier Italic! No idea why or how but I'd let you Opera Mini looks wierd with pages rendered in this font :)

Addison
2010-02-06, 07:37
Hey all.

I installed my DVD of UptoDate 17.3 (http://www.utdol.com/home/help/manual/sysreq/index.html#pdaInstallation) on my internal memory card.

I'd like to run this under Garnet VM if possible.

All the files, which total around 1.8 gigs in size, are in .jar format. The program is just basic text output to the screen along with non-animated images.

The installation went fine but went I start it up, I get a segmentation fault most likely due to not having any type of java support.

So to keep things simple, is there any possible chance of having this work?

This app is probably the most important thing to me in the world.

Here's a basic screen shot of what it put on my memory card.

http://img707.imageshack.us/img707/1408/20046689.png

My expectations on this is very low but still had to at least ask you guys. :)

debernardis
2010-02-06, 08:51
Hey all.

I installed my DVD of UptoDate 17.3 (http://www.utdol.com/home/help/manual/sysreq/index.html#pdaInstallation) on my internal memory card.

I'd like to run this under Garnet VM if possible.

All the files, which total around 1.8 gigs in size, are in .jar format. The program is just basic text output to the screen along with non-animated images.

The installation went fine but went I start it up, I get a segmentation fault most likely due to not having any type of java support.

So to keep things simple, is there any possible chance of having this work?

This app is probably the most important thing to me in the world.

Here's a basic screen shot of what it put on my memory card.

http://img707.imageshack.us/img707/1408/20046689.png

My expectations on this is very low but still had to at least ask you guys. :)
dear colleague :) I'm no expert at all of java stuff but try this:

do as the first post of this: http://talk.maemo.org/showthread.php?t=37799&highlight=java+opera - the thing you have to download and uncompress in /home/user is this: http://maemos.ru/wp-content/uploads/2009/12/java_nokia_n900_maemo5_opera_mini.zip

then after confirming that it works by running opera mini, you can try with your medical jar files by command line; as far as I can tell should be

java -jar microemulator.jar yourmedicalfile.jar

Good luck :)

Addison
2010-02-06, 15:57
dear colleague :) I'm no expert at all of java stuff but try this:

do as the first post of this: http://talk.maemo.org/showthread.php?t=37799&highlight=java+opera - the thing you have to download and uncompress in /home/user is this: http://maemos.ru/wp-content/uploads/2009/12/java_nokia_n900_maemo5_opera_mini.zip

then after confirming that it works by running opera mini, you can try with your medical jar files by command line; as far as I can tell should be

java -jar microemulator.jar yourmedicalfile.jar

Good luck :)

Thank you Deb!

I'll give this my best try later on today.

The DVD would only install this if it was connected to something that it liked, and I guess it wanted to get friendly with Garnet VM.

From there, it installed some type of stamp on my memory card where I needed to remove it from my device and place the card into a memory card reader to download the 1.8 gigs of crud onto it.

After that, I had an install file in Garnet that worked without complaint.

So maybe there is some hope on this afterall.

The only thing is that this app is quite expensive, up to $1,500 for a one year subscription, though I get a moderate discount on it.

My worry is that the encoding needs to be hacked if it's not running naturally like intended.

If using this by command line, I can easily make a custom desktop file to achieve such a thing.

Anyway, I'll give it a whirl and see what happens from it.

Many thanks again Deb!

fred123
2010-02-07, 00:29
Stil trying to get java working with microb.

libnpjp2.so is shown as enabled is add-ons plugins

what else would be needed to enable java on a web page

Addison
2010-02-08, 06:14
Hey there Deb.

I've tried to download the java_nokia_n900_maemo5_opera_mini zip file you suggested on my tablet and even my home computer.

All three times the file crapped out at around 12 megs and when trying to open it, there's some kind of a file corruption message.

I'm not sure what is wrong with this or what to do here.

debernardis
2010-02-08, 10:27
Hey there Deb.

I've tried to download the java_nokia_n900_maemo5_opera_mini zip file you suggested on my tablet and even my home computer.

All three times the file crapped out at around 12 megs and when trying to open it, there's some kind of a file corruption message.

I'm not sure what is wrong with this or what to do here.

PM me your email address - I'll send you the zip file, working, from home.

derdas
2010-02-08, 21:48
Try this: http://rapidshare.com/files/347856931/java_nokia_n900_maemo5_opera_mini.zip
33.849.953 bytes

derdas
2010-02-09, 17:33
Public transport in east Austria has a presumably nice tool to get all their schedules on the mobile. But they do not support N900.
:(

Please - is there anybody who would help me to get the Java version of www.qando.at to run on N900?
Thanks!

fred123
2010-02-09, 17:50
Public transport in east Austria has a presumably nice tool to get all their schedules on the mobile. But they do not support N900.
:(

Please - is there anybody who would help me to get the Java version of www.qando.at to run on N900?
Thanks!

This app will run on microemulator, described above but gives very small display.

qole
2010-02-09, 18:34
Microemulator can be made to have a large display, you have to set it in Options -> Select Device. Change the default to "Resizable Device".

EDIT: I can't get either qando.jar or qandoTouch.jar to open in MicroEmulator. It says "loading" but in the terminal, it gets an error ("java.lang.IllegalArgumentException: Malformed \uxxxx encoding")...

EDIT-EDIT: You can use "qando light" but it really is awful. This is probably what fred123 was talking about. It only uses a tiny corner of the display and no graphics to speak of.

ideligoz
2010-02-09, 18:35
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
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
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 (http://dailymobile.se/2009/06/30/nokia-java-runtime-20-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
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
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 (http://dailymobile.se/2009/06/30/nokia-java-runtime-20-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
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
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
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
[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
[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;);)

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
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
Finally got some sort of straight talk from Sun about the Java SE Embedded licensing issue...


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
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
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
@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
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
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
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
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
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
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
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
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
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:


Install Easy debian (which gives you firefox, java, etc), but not "native" to the N900
Follow this thread to try to install one of those JVMs.

kamishly
2010-02-14, 05:34
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:


Install Easy debian (which gives you firefox, java, etc), but not "native" to the N900
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
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 (http://talk.maemo.org/showthread.php?t=34550)

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

Ronaldo
2010-02-14, 20:21
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
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
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
how do you do this....???

grube300
2010-02-20, 11:45
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
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
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.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=ejre-6u10-oth-JPR@CDS-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
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
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
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
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
Has anyone tried the OpenJDK for Maemo?

http://wiki.maemo.org/OpenJDK_6.0_0_%28Cambridge_Software_Labs%29_on_N90 0

http://wiki.maemo.org/images/2/2b/Tomcat_in_OpenJDK_on_N900.png

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

AlMehdi
2010-02-25, 14:36
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
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.

soeiro
2010-02-25, 18:53
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
Cambridge Labs version discussed earlier in the thread. Not as good as the Sun Embedded Java, but acceptable.

Has anyone tried the OpenJDK for Maemo?

http://wiki.maemo.org/OpenJDK_6.0_0_%28Cambridge_Software_Labs%29_on_N90 0

http://wiki.maemo.org/images/2/2b/Tomcat_in_OpenJDK_on_N900.png

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

soeiro
2010-02-28, 16:06
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
Is there any possibility to get it linked with browser? or only addon?

Hext
2010-03-01, 01:36
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
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 (http://www.camswl.com/openjdk)?

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
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
I have finally got google maps running on my n900!

Using Barteo's microemulator
microemulator (http://snapshot.microemu.org/microemulator/download/)

and

Google maps 2.3.2 touch screen (http://www.google.com/gmm/apps/v2.3.2/L1/gmaps-232-m2_ts_L1.jar)

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

SubCore
2010-03-02, 14:17
SubCore can we please get in touch to discuss how to get qando to work? I would greatly appreciate your help!

from the FAQ:
#
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
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
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
Has anybody tried OpenJDK/IcedTea?

qole
2010-03-03, 03:41
dmj726: Yes, that's what the Cambridge package is.

Kurele
2010-03-03, 06:21
Hello all! How did that one person a while back get frostwire to work? Farthest ive gotten is here...

http://shermantj.selfip.com/online/Screenshot-20100302-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
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
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:
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
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
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
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=513809&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
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
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
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
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
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/source/packages/package/index.php?pk=266
That would be great to run all JavaME applications available !

Flynx
2010-04-13, 07:34
I have finally got google maps running on my n900!

Using Barteo's microemulator
microemulator (http://snapshot.microemu.org/microemulator/download/)

and

Google maps 2.3.2 touch screen (http://www.google.com/gmm/apps/v2.3.2/L1/gmaps-232-m2_ts_L1.jar)

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
did an 1 ran runescape yet

bonsai009
2010-04-22, 19:11
I have finally got google maps running on my n900!

Using Barteo's microemulator
microemulator (http://snapshot.microemu.org/microemulator/download/)

and

Google maps 2.3.2 touch screen (http://www.google.com/gmm/apps/v2.3.2/L1/gmaps-232-m2_ts_L1.jar)

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
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
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
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
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
i am looking for a way to run a jar app on my n900

felbutss
2010-05-01, 08:33
how can jar not be supported. i am trying to run trapster

apache
2010-05-07, 16:22
http://maemoarena.com/2010/05/nokia-n900-got-java-support-finally-and-also-opera-mini-demoed-in-n900/

HOpe this works :D

Chazhands
2010-05-10, 19:05
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
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
can any1 tell me that what other java apps can be run on n900 using the microemulator ?

ifama
2010-05-13, 18:12
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
No Java/GPS integration for now....but I'm working on it ;)

ideligoz
2010-05-13, 19:20
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.

Dak
2010-05-13, 19:27
Nice work, ideligoz :)

I took a different route (and I'm also building a solution for the Sun embedded JRE), but it would be nice if I could adapt my code to integrate with yours.

Thanks for pointing me in your direction! I shall grab your code and see what I can figure out :)

ideligoz
2010-05-13, 19:46
Nice work, ideligoz :)

I took a different route (and I'm also building a solution for the Sun embedded JRE), but it would be nice if I could adapt my code to integrate with yours.

Thanks for pointing me in your direction! I shall grab your code and see what I can figure out :)

gps interface is using JNI to access liblocation, you can use the gpsJNI.class and call the functions from it.

6sicSIX
2010-05-13, 19:49
I really don't know much about java, well anything.. But does this mean that limewire or frostwire will be possible eventually?

ifama
2010-05-14, 20:49
No Java/GPS integration for now....but I'm working on it ;)

looking forward to it ;)

ifama
2010-05-16, 17:14
Does anybody know whether it is possible to use the bluetooth module within java on the N900? I would like to establish a bt connection to an external gps receiver via the SPP protocol.
Would be glad if someone could give me information on that!

nokea
2010-05-18, 08:28
listen can anyone plz help with java setup on my n900

nokea
2010-05-18, 08:32
need help installing java anyone there

Dak
2010-05-21, 00:18
I now have a working .deb install available for the Sun embedded JRE for the N900.

It installs the JRE and sets up convenient symlinks in /usr/local/bin so that all you have to do is:

jarexec <jarfile>

The jarexec script also refreshes the 90 day license so you never need worry about it expiring ;)

I just need to find out where to put the .deb so people can grab it...

hostITlocal
2010-05-21, 10:13
I now have a working .deb install available for the Sun embedded JRE for the N900.

It installs the JRE and sets up convenient symlinks in /usr/local/bin so that all you have to do is:

jarexec <jarfile>

The jarexec script also refreshes the 90 day license so you never need worry about it expiring ;)

I just need to find out where to put the .deb so people can grab it...

If it's legal, we would be more than happy to host the deb file for download.

Let me know what you would like to do.

My e-mail address is james@ my username .co.uk

kamishly
2010-05-24, 23:07
Java help.

I'm not a tech guy but I want to know if someone can help with the link to work the streamer on N900

http://www.netdania.com/Products/live-streaming-currency-rates-foreign-exchange/real-time-quotes/QuoteList.aspx#

I can't get the streaming quotes to work like on my PC.



If it's legal, we would be more than happy to host the deb file for download.

Let me know what you would like to do.

My e-mail address is james@ my username .co.uk