Author Topic: Sun Java Me Runtime Environment Available  (Read 9128 times)

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Sun Java Me Runtime Environment Available
« on: November 15, 2006, 05:11:46 pm »
Hi,

Sun has finally released open-source Java SE and ME implementations. Time to get a decent Java environment running on the Zaurus. Unfortunately, the full SE version doesn't have out-of-the-box ARM support, needed for the HotSpot compiler, so we have to do with J2ME for the time being.

Attached you find a quick build of the Java ME phone platform containing:
    * CDC VM 1.1.1
    * Foundation Profile 1.1 (JSR 219)
    * Personal Basis Profile 1.1 (JSR 217)
    * Personal Profile 1.1 (JSR 216 )
    * CDC AMS (Application Management System)

No Swing support, but AWT only. Give it a try, I think its worth it!

cortez
[div align=\"center\"]== == == == == == == == == == == == == ==
www.omegamoon.com
Zaurus SL-C750 - Died in a dreadful coffee experiment, has a second life somewhere in the Czech Republic
Zaurus SL-C1000 - Multiboot Zubuntu, Debian, Fedora, Poky, Android and others
Zaurus SL-C3100 - Development device, currently Zubuntu 2.0
Zaurus SL-6000L - The fridge is running Zubuntu 1.0
Zaurus SL-C860 - Cacko, untouched since kindly donated, waiting for Zubuntu
== == == == == == == == == == == == == ==[/div]

ULhume

  • Newbie
  • *
  • Posts: 38
    • View Profile
    • http://artisan.karma-lab.net
Sun Java Me Runtime Environment Available
« Reply #1 on: November 15, 2006, 07:04:37 pm »
Quote
Hi,

Sun has finally released open-source Java SE and ME implementations. Time to get a decent Java environment running on the Zaurus. Unfortunately, the full SE version doesn't have out-of-the-box ARM support, needed for the HotSpot compiler, so we have to do with J2ME for the time being.

Attached you find a quick build of the Java ME phone platform containing:
    * CDC VM 1.1.1
    * Foundation Profile 1.1 (JSR 219)
    * Personal Basis Profile 1.1 (JSR 217)
    * Personal Profile 1.1 (JSR 216 )
    * CDC AMS (Application Management System)

No Swing support, but AWT only. Give it a try, I think its worth it!

cortez
[div align=\"right\"][a href=\"index.php?act=findpost&pid=146384\"][{POST_SNAPBACK}][/a][/div]

Good ! Just a litlle question, why JamVM/classpath is not *decent* java environement  for you (it's real question, no troll)

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Sun Java Me Runtime Environment Available
« Reply #2 on: November 16, 2006, 02:34:58 am »
Good stuff. But how do you use it? (I've googled but couldn't find much docs/info).

I extracted it to its own directory then ran:
Code: [Select]
./bin/cvm -jar some.jar
But get this error:

Code: [Select]
-jar: Could not find Main-Class manifest attribute
...
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Sun Java Me Runtime Environment Available
« Reply #3 on: November 16, 2006, 03:34:29 am »
Quote
Good ! Just a litlle question, why JamVM/classpath is not *decent* java environement for you (it's real question, no troll)
Oh well, JamVM with Classpath serves the purpose really well in most cases but I think that the Zaurus deserves more than "just" 98% Java in Classpath beta releases. Don't get me wrong, it's a marvellous job done so far, that's for sure, but for 100% Java there is currently only one source, and that's Sun. That's why I said "decent"

Quote
Good stuff. But how do you use it? (I've googled but couldn't find much docs/info).
A complete Runtime Guide can be found here. You have to use -cp instead of -jar in your example.

Try running % bin/cvm -cp democlasses.jar personal.DemoFrame for a nice AWT example

cortez
[div align=\"center\"]== == == == == == == == == == == == == ==
www.omegamoon.com
Zaurus SL-C750 - Died in a dreadful coffee experiment, has a second life somewhere in the Czech Republic
Zaurus SL-C1000 - Multiboot Zubuntu, Debian, Fedora, Poky, Android and others
Zaurus SL-C3100 - Development device, currently Zubuntu 2.0
Zaurus SL-6000L - The fridge is running Zubuntu 1.0
Zaurus SL-C860 - Cacko, untouched since kindly donated, waiting for Zubuntu
== == == == == == == == == == == == == ==[/div]

zi99y

  • Sr. Member
  • ****
  • Posts: 282
    • View Profile
Sun Java Me Runtime Environment Available
« Reply #4 on: November 16, 2006, 04:32:23 am »
Can you recommend a good place to start learning Java, as I have no experience with it. I have been learning C# for a while though. Is the language similar/the same as the java implementation in .Net?

cheers

ULhume

  • Newbie
  • *
  • Posts: 38
    • View Profile
    • http://artisan.karma-lab.net
Sun Java Me Runtime Environment Available
« Reply #5 on: November 16, 2006, 05:08:43 am »
Quote
Can you recommend a good place to start learning Java, as I have no experience with it. I have been learning C# for a while though. Is the language similar/the same as the java implementation in .Net?

cheers
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
First of all, for any .Net lover reading what's follow, there is no such a thing that a better language, better OS or better religion... so no burst please

So first, .net is mostly the same implementation as Java... Not the inverse, Java is older ;-) Anyway, competition is good and Java would never have move so quickly for the last 2 years (jdk 1.5, GPL, etc...) if there was no .Net danger around. And .Net has also pretty good ideas that should be integrated in Java.

1/ About virtual Machines: .Net born because Sun didn't accept to play nicely with Microsoft when they wanted to hack the JVM for their own purpose (mainly com/dcom internal support, windows and office integration, etc..). So they made a .net VM that is actually very very close (performance wise) to jvm. So don't be fool, I have practical facts (actually a full benchmarking process) proving that Java is not slower than .Net at execution time, even if .net application are quicker at start up time. The main reason of this is the stupid java "design" for libraries management. A painfull historical mystake.

2/ languages: C# and Java are very closed and are both good beasts. My personal opinion (2 cents one ;-) is that C# was more desined to seduce C++ developpers allowing things that Java will never let go. Anyway there is just little differences between the two languages. You'll learn them very quickly ( see [a href=\"http://en.wikipedia.org/wiki/Comparison_of_C_Sharp_and_Java]http://en.wikipedia.org/wiki/Comparison_of_C_Sharp_and_Java[/url] ). C# was designed by the "creator" of Delphi and you can feel he seed in this stuff, like properties for example, something that Java really miss...  

3/ Libraries: for features implementation Java is a complete differente word. You'll have same functionnalities (Xml, drawings, etc...) but with a different philosophy. But with google you'll quickly find correspondances.

Now, that is just my own mixture of facts and opinion. I used, honestly, both, Java and c#/.net  (when you work for a software ingeneering company, you have to follow what customers want, even if I don't agree with directions ;-). And I still prefere Java...

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Sun Java Me Runtime Environment Available
« Reply #6 on: November 16, 2006, 05:34:54 am »
Quote
Can you recommend a good place to start learning Java, as I have no experience with it. I have been learning C# for a while though. Is the language similar/the same as the java implementation in .Net?

cheers
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

You can download [a href=\"http://mindview.net/Books/TIJ/DownloadSites]Thinking In Java here[/url]. It's a really good book, and best of all, it's free!

cortez
[div align=\"center\"]== == == == == == == == == == == == == ==
www.omegamoon.com
Zaurus SL-C750 - Died in a dreadful coffee experiment, has a second life somewhere in the Czech Republic
Zaurus SL-C1000 - Multiboot Zubuntu, Debian, Fedora, Poky, Android and others
Zaurus SL-C3100 - Development device, currently Zubuntu 2.0
Zaurus SL-6000L - The fridge is running Zubuntu 1.0
Zaurus SL-C860 - Cacko, untouched since kindly donated, waiting for Zubuntu
== == == == == == == == == == == == == ==[/div]

zi99y

  • Sr. Member
  • ****
  • Posts: 282
    • View Profile
Sun Java Me Runtime Environment Available
« Reply #7 on: November 16, 2006, 02:29:22 pm »
Thanks so much, it's interesting to hear about some background as I'm a relatively wet behind the ears coder that just got a dev job and am learning as I go! I don' plan on actually programming on the Z but having the environment handy will be great to test stuff while I learn.

I've just discovered a post with ipks for portable .net that supposedly allows compiling and running c# app even with windows forms on pdaxrom so I may give that a go first as c# is what I'm working on right now.

Donloaded thinking in java to my Z, thanks, more reading for the train!

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Sun Java Me Runtime Environment Available
« Reply #8 on: November 16, 2006, 04:19:05 pm »
Just to let you know, I'm working on a somewhat more user friendly (ipk) installation package. I'll add the application manager to the menu so applications can be started from there. It seems that the screensize is hardcoded (and wrong!), so I'll have to tweak the code a bit first  

cortez
[div align=\"center\"]== == == == == == == == == == == == == ==
www.omegamoon.com
Zaurus SL-C750 - Died in a dreadful coffee experiment, has a second life somewhere in the Czech Republic
Zaurus SL-C1000 - Multiboot Zubuntu, Debian, Fedora, Poky, Android and others
Zaurus SL-C3100 - Development device, currently Zubuntu 2.0
Zaurus SL-6000L - The fridge is running Zubuntu 1.0
Zaurus SL-C860 - Cacko, untouched since kindly donated, waiting for Zubuntu
== == == == == == == == == == == == == ==[/div]

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Sun Java Me Runtime Environment Available
« Reply #9 on: November 16, 2006, 06:12:02 pm »
Quote
Just to let you know, I'm working on a somewhat more user friendly (ipk) installation package. I'll add the application manager to the menu so applications can be started from there. It seems that the screensize is hardcoded (and wrong!), so I'll have to tweak the code a bit first   

cortez
[div align=\"right\"][a href=\"index.php?act=findpost&pid=146473\"][{POST_SNAPBACK}][/a][/div]
Excellent! will this work with the firefox plugin? (libjcgweb,or something like, I think)
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

ofels

  • Full Member
  • ***
  • Posts: 139
    • View Profile
    • http://
Sun Java Me Runtime Environment Available
« Reply #10 on: December 05, 2006, 11:52:18 am »
Quote
Excellent! will this work with the firefox plugin? (libjcgweb,or something like, I think)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=146486\"][{POST_SNAPBACK}][/a][/div]

Nope- This is a port of the J2ME specs which does not include applet support.

Oliver

mores

  • Newbie
  • *
  • Posts: 1
    • View Profile
Sun Java Me Runtime Environment Available
« Reply #11 on: December 28, 2006, 11:57:05 am »
Quote
Just to let you know, I'm working on a somewhat more user friendly (ipk) installation package. I'll add the application manager to the menu so applications can be started from there. It seems that the screensize is hardcoded (and wrong!), so I'll have to tweak the code a bit first   

cortez
[div align=\"right\"][a href=\"index.php?act=findpost&pid=146473\"][{POST_SNAPBACK}][/a][/div]
Do you have an update on this ?
Where can I go to get the latest info for the Sun on OZ ?
I have not picked up my Z in a while and putting a Sun VM on it is worth dusting it off.

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Sun Java Me Runtime Environment Available
« Reply #12 on: January 03, 2007, 10:16:00 am »
Quote
Quote
Just to let you know, I'm working on a somewhat more user friendly (ipk) installation package. I'll add the application manager to the menu so applications can be started from there. It seems that the screensize is hardcoded (and wrong!), so I'll have to tweak the code a bit first   

cortez
[div align=\"right\"][a href=\"index.php?act=findpost&pid=146473\"][{POST_SNAPBACK}][/a][/div]
Do you have an update on this ?
Where can I go to get the latest info for the Sun on OZ ?
I have not picked up my Z in a while and putting a Sun VM on it is worth dusting it off.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=149334\"][{POST_SNAPBACK}][/a][/div]
No update yet I'm afraid. Too busy moving to my new home. I will have another try soon hopefully. I saw that Sun released the "phoneME Advanced MR2". I will give it a try, since this supports "improved flexibility and portability" according to Sun. Hopefully this solves a few of the problems in MR1
[div align=\"center\"]== == == == == == == == == == == == == ==
www.omegamoon.com
Zaurus SL-C750 - Died in a dreadful coffee experiment, has a second life somewhere in the Czech Republic
Zaurus SL-C1000 - Multiboot Zubuntu, Debian, Fedora, Poky, Android and others
Zaurus SL-C3100 - Development device, currently Zubuntu 2.0
Zaurus SL-6000L - The fridge is running Zubuntu 1.0
Zaurus SL-C860 - Cacko, untouched since kindly donated, waiting for Zubuntu
== == == == == == == == == == == == == ==[/div]