Tuesday, March 03, 2009

Java on My Nokia 770

It's actually called "PhoneMEAdvanced MR2 Java CDC/FP version 1.1 VM"
http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedPlatformsNokia800

Step 1 Install tools we need

1.1 OpenSSH server
1.2
osso Xterm
1.3
unzip
1.4
wget

1.1 OpenSSH is not needed here, but it's a very interesting tool. I install both of the client and server. Having the server installed, it's supposed that we can access the device via its IP address from a normal computer so that the typing would be easier. Need password, it might be "rootme".

1.2 osso Xterm is the terminal console
We do everything here.

1.3 unzip
so that we can unzip the .zip files.

1.4 wget
it's a GNU freeware, search "maemo wget", you will get to here:
http://maemo.org/downloads/product/OS2007/wget/
for 770, http://maemo.org/downloads/product/OS2006/wget/
Open the page on 770 using the OS2006 link. However, my 770 cannot find the resource.
We can get it here:
http://mg.pov.lt/770/dists/mistral/other/binary-armel/
There are many other application at mg.pov.lt too.

Step 2.
get a binary runtime build here

http://thehereweb.googlepages.com/N800-java-cdc-fp-pmea-mr2-rev5444.zip

link to the java.net page. and show the java servlet on 770
http://thehereweb.googlepages.com/runningosgionthenokian800

This is the most important materials
http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedPlatformsNokia800

Step 3. Run to Validate

we can unzip it on our PC and send to 770 and must be on the ram, cannot save in the mmc card.
put it anywhere in the /home/user/MyDocs/.documents/
chmod 555 ./bin/cvm
give it the permission to execute.

Transfer zipfile to N800, unzip to a directory of your choice and validate on N800 with these commands: Nokia-N800:/cdc/# ./bin/cvm -version
Product: phoneME Advanced (phoneme_advanced_mr2-b18)
Profile: Foundation Profile Specification 1.1
JVM: CVM phoneme_advanced_mr2-b18 (mixed mode)
Nokia-N800:/cdc/# ./bin/cvm -cp testclasses.zip HelloWorld
Hello world.
Nokia-N800:/cdc/# ./bin/cvm -cp testclasses.zip Test
<... lots of output ...>
*CONGRATULATIONS: test Test completed with 411 tests passed and 0 failures
*Output lines starting with a * should be checked for correctness
*They can be compared to src/share/javavm/test/TestExpectedResult

No comments:

Post a Comment