Author Topic: Sun J2sdk 1.4.2 For Pdaxrom  (Read 13139 times)

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Sun J2sdk 1.4.2 For Pdaxrom
« on: December 15, 2004, 10:22:08 am »
Hi,

I've tried to compile Sun's J2SDK for Zaurus, but man is this difficult!

Following the instructions as described here I am currently stuck with the compilation of Motif, and this is only the first step  

Can any of you guys tell me if it is even worth considering that I continue?

Looking at the hotspot code, it has loads of i586 specific code. I don't know if the runtime system can do without it.

Any help would be appriciated here!

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]

dahukanna

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Sun J2sdk 1.4.2 For Pdaxrom
« Reply #1 on: December 15, 2004, 11:23:45 am »
I would like to get 142 on my zaurus. How can I help ?
SL-C860|CackoQT 1.2.2 or pdaxrom 1.1.0|256CF Maxell|512 SD Lexar|Aircable BT|Piel Frama Case

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Sun J2sdk 1.4.2 For Pdaxrom
« Reply #2 on: December 15, 2004, 12:18:48 pm »
Ooh, sounds great, I wasn't even aware you could get a source copy of JDK.

I would suggest that there must be a build setting that compiles for non x86 targets otherwise how would you run it on your Sparcstation ?

You won't forget the firefox plugin will you ?

- Andy
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

ltrm

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • http://
Sun J2sdk 1.4.2 For Pdaxrom
« Reply #3 on: December 15, 2004, 12:48:18 pm »
Just out of interest why arn't you looking at J2SE 5 (1.5.0)?
C860 - pdaXrom + XFCE4 <montyBurns>mmm Excellent</montyBurns>
Socket Bluetooth rev E - Socket low-power WiFi
1Gb Microdrive - Integral 1Gb SD
Belkin IR Keyboard - Pretec (Royaltek RBT-3000) BluetoothGPS
CE-RH1 remote control - Solar charger + some other bits 'n' bobs

pgas2

  • Newbie
  • *
  • Posts: 31
    • View Profile
Sun J2sdk 1.4.2 For Pdaxrom
« Reply #4 on: December 15, 2004, 01:04:59 pm »
Have you read the license?
Will you be able to redistribute the jdk if you manage to build it?

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Sun J2sdk 1.4.2 For Pdaxrom
« Reply #5 on: December 15, 2004, 01:52:41 pm »
@iamasmith:
 
Firefox/Mozilla plugin is included in the the source, so, if this works out fine, I guess the answer is yes  

@ltrm:

My first aim is 1.4.2 because I'm using it in my daily work, that's why. But hey, I will give it a try later, okay?  

@pgas2:

Of course I've read the license (yawn), otherwise I wouldn't be able to download the source. If I only succeed in building it first, I will find a way to redistribute it one way or the other. Worste case scenario would be to post a step by step instruction on how to build it yourself  
[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]

ostense

  • Newbie
  • *
  • Posts: 41
    • View Profile
Sun J2sdk 1.4.2 For Pdaxrom
« Reply #6 on: December 16, 2004, 04:57:39 am »
Quote
Following the instructions as described here I am currently stuck with the compilation of Motif, and this is only the first step  

Can any of you guys tell me if it is even worth considering that I continue?
Really cool that anybody try to compile java !! The hope of being able to run full java on the Z is what makes pdaXrom the thing for me.

You say you have problems with Motif .  How can we help? What kind of problems?

andrewwoods

  • Newbie
  • *
  • Posts: 49
    • View Profile
    • http://
Sun J2sdk 1.4.2 For Pdaxrom
« Reply #7 on: December 16, 2004, 05:50:38 am »
I too want the Firefox JRE plugin so that I can use my 860 as a laptop replacement at work. Currently I cannot access email within our corporate portal as it is all java based.

I would be happy to compile it for myself, if someone can lead me through it.

If I can help with testing / debugging etc then please let me know.

Andrew
SL-C860 pdaxrom Beta3 512MB SD
Buffalo CF WLAN RTM-8000 GPRS ANYCOM BT

drak2

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • http://drak.liten.cz/
Sun J2sdk 1.4.2 For Pdaxrom
« Reply #8 on: December 16, 2004, 01:38:04 pm »
Wow,
Small OpenOffice viewer [ http://www.engg.upd.edu.ph/~ooview/ ] (100kB .jar) required JAVA 1.4.2,
if 1.4.2 running on pdaXrom - next Christmas present ;-))

(download link: http://os.up.edu.ph/modules.php?name=Downl...fice.org_Viewer  )
SL-860 + [ last pdaXrom | last CACKO ]
512SD, BT CF Socket [rev G]
SL-5000D - dead SDRAM :-(
 [ sory for my english ;-) ]

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Sun J2sdk 1.4.2 For Pdaxrom
« Reply #9 on: December 18, 2004, 10:39:51 am »
I hate to break the news to you all, but I don't think that Java 1.4.2 or 1.5.0 will be your next Christmas present  

The code is full of cpu dependant code. The Hotspot Just-In-Time compiler generates machinecode on-the-fly. Currently only i486, amd64, ia64 and sparc are supported out of the box.

My first hope was that it would be possible to disable the JIT feature completely. Java is after all an interpreted language, and the JIT feature only speeds up code execution of classes executed more than once. By disabling the JIT feature we would lose speed, but hey, I could live with that. But removing the cpu dependant code is not easily done.

And my knowledge of ARM assembler is nearly zero, so porting the code to the ARM architecture is no option for me. This is far, far more complex than I thought. Porting the code to the ARM CPU would be quite a job.

I don't know if the guys from the Blackdown project have put any effort into this, do any of you guys know anything about that?
[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]

nontrivial

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
    • http://james.nontrivial.org
Sun J2sdk 1.4.2 For Pdaxrom
« Reply #10 on: December 19, 2004, 03:42:58 pm »
On my todo list is try out the Jeode JVM with a hacked Swing jar file I have on PDAXROM. It obviously won't support 1.4 and 1.5 specific javaisms, but it would be better than a poke in the eye.

James

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Sun J2sdk 1.4.2 For Pdaxrom
« Reply #11 on: December 19, 2004, 05:27:18 pm »
I just succesfully compiled JamVM 1.2.2 with GNU classpath 0.12
I still have to test it on my SL-C750 to see how it works though.

I also tried to compile SableVM, but it needs libffi, which is a pain to compile.
« Last Edit: December 19, 2004, 05:27:45 pm by 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]

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Sun J2sdk 1.4.2 For Pdaxrom
« Reply #12 on: December 20, 2004, 01:54:43 am »
Just to make sure that you don't miss the info:

According to this thread the blackdown 1.3 java port seems to be working on pdaxrom rc5.
SLC-860 cacko / senao wifi

ostense

  • Newbie
  • *
  • Posts: 41
    • View Profile
Sun J2sdk 1.4.2 For Pdaxrom
« Reply #13 on: December 20, 2004, 04:47:44 am »
Most of the new api in java 1.4 and 1.5 are written in java itself .  If I read the Sun documentation right almost all Swing code is written in java. Maybe one could use the VM code from the blackdown 1.3 and take other stuff that is written in java from 1.4 or 1.5  . Some api wil not function but most will do the job ... Just  a thought ...

ostense

  • Newbie
  • *
  • Posts: 41
    • View Profile
Sun J2sdk 1.4.2 For Pdaxrom
« Reply #14 on: December 27, 2004, 02:15:43 pm »
Hi !

I have tested the blackdown 1.3  version om RC 8 with two rather heavy Swing applications and it worked just fine. After install of ipkg package then reboot (a must!) and export  JAVA_HOME  and update PATH to point to the folder with the java program file (as documented elsewhere in this forum).  It takes some time to start java programs, but once started they behave like ordinary programs. I will try out to move the java programmed parts  from java 1.4 and 1.5 to the Z to see if it is possible to get some of the new function on top of the 1.3 JVM.