Author Topic: "normal" Java On The Z?  (Read 9755 times)

ludo

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
"normal" Java On The Z?
« on: January 11, 2006, 03:32:05 am »
I am often refering to Meanie's web site , and have to go back to what there often because as some things get clearer, I have new questions.

One here:
what would prevent the normal java (the sun's J2SE distribution for Linux) to run on the Z?

I have not tried it yet, but it seems that Blackdown Java-Linux is actually the J2SE. So does it mean that we can run any application written and compiled on the PC on the zaurus?

Ludo

(C3000 sharp ROM)
C3000 sharp ROM

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
"normal" Java On The Z?
« Reply #1 on: January 11, 2006, 04:22:59 am »
Quote
I am often refering to Meanie's web site , and have to go back to what there often because as some things get clearer, I have new questions.

One here:
what would prevent the normal java (the sun's J2SE distribution for Linux) to run on the Z?

I have not tried it yet, but it seems that Blackdown Java-Linux is actually the J2SE. So does it mean that we can run any application written and compiled on the PC on the zaurus?

Ludo

(C3000 sharp ROM)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=110383\"][{POST_SNAPBACK}][/a][/div]

You can run j2se apps on the Z, however, they will be slow and you will need X//Qt if you want to run a GUI, ie awt or swing. Also, blackdown is only jre 1.3.1 so any java application using newer apis for 1.5 or 5.0 will not run on the Zaurus.
If you look at my HdPad application, it was written for 1.3.1 so it runs on the Zaurus without needing any modifications or recompilation. Even my HdCrawler app which was compiled with 1.4.1 compiler runs because it hasn't used any of the newer 1.4.x methods and classes.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

ludo

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
"normal" Java On The Z?
« Reply #2 on: January 12, 2006, 02:27:36 am »
Thanks Meanie.

I'll then move to X/Qt some time soon.
C3000 sharp ROM

tovarish

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
"normal" Java On The Z?
« Reply #3 on: January 12, 2006, 05:53:33 am »
Quote
Quote
I am often refering to Meanie's web site , and have to go back to what there often because as some things get clearer, I have new questions.

One here:
what would prevent the normal java (the sun's J2SE distribution for Linux) to run on the Z?

I have not tried it yet, but it seems that Blackdown Java-Linux is actually the J2SE. So does it mean that we can run any application written and compiled on the PC on the zaurus?

Ludo

(C3000 sharp ROM)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=110383\"][{POST_SNAPBACK}][/a][/div]

You can run j2se apps on the Z, however, they will be slow and you will need X//Qt if you want to run a GUI, ie awt or swing. Also, blackdown is only jre 1.3.1 so any java application using newer apis for 1.5 or 5.0 will not run on the Zaurus.
If you look at my HdPad application, it was written for 1.3.1 so it runs on the Zaurus without needing any modifications or recompilation. Even my HdCrawler app which was compiled with 1.4.1 compiler runs because it hasn't used any of the newer 1.4.x methods and classes.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=110394\"][{POST_SNAPBACK}][/a][/div]

meanie, the j2me distribution on your website differs a bit from sun's. how did you create it then. the vm (cvm executable) differs largely by size as well as the .so files. there is also swing in your set.

tovarish

DrWowe

  • Hero Member
  • *****
  • Posts: 696
    • View Profile
    • http://
"normal" Java On The Z?
« Reply #4 on: January 16, 2006, 08:29:54 pm »
Quote
Also, blackdown is only jre 1.3.1 so any java application using newer apis for 1.5 or 5.0 will not run on the Zaurus.
Retroweaver can help here.
« Last Edit: January 16, 2006, 08:30:07 pm by DrWowe »

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
"normal" Java On The Z?
« Reply #5 on: January 17, 2006, 06:05:23 am »
Quote
Quote
Also, blackdown is only jre 1.3.1 so any java application using newer apis for 1.5 or 5.0 will not run on the Zaurus.
Retroweaver can help here.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111218\"][{POST_SNAPBACK}][/a][/div]

well, unfortunately not. blackdown is 1.3 whereas retroveaver creates 1.4 bytecode. i meant to say 1.4 and 5.0 (not 1.5 since that's the same as 5.0
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

DrWowe

  • Hero Member
  • *****
  • Posts: 696
    • View Profile
    • http://
"normal" Java On The Z?
« Reply #6 on: January 17, 2006, 10:14:59 am »
Quote
well, unfortunately not. blackdown is 1.3 whereas retroveaver creates 1.4 bytecode. i meant to say 1.4 and 5.0 (not 1.5 since that's the same as 5.0
It's not really mentioned in the documentation, but retroweaver can target 1.3 as well.  A web search will turn up info on how to do it.
« Last Edit: January 17, 2006, 10:16:20 am by DrWowe »