Author Topic: Java 1.3 and Swing in pdaxrom 1.1.0 RC5  (Read 4062 times)

tovarish

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
Java 1.3 and Swing in pdaxrom 1.1.0 RC5
« on: November 13, 2004, 04:41:14 pm »
Hi all,

Has anyone managed to run swing apps with pdaxrom rc5 kathrin
any help will be appreciated

thanks,
tovarish

ViV

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • http://
Java 1.3 and Swing in pdaxrom 1.1.0 RC5
« Reply #1 on: November 19, 2004, 06:07:11 am »
I'm interested in running JRE/JDK on VFP'ed pdaxroms too...
Motorola A780

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Java 1.3 and Swing in pdaxrom 1.1.0 RC5
« Reply #2 on: November 19, 2004, 07:39:55 am »
AFAIK jdks from ibm sun or blackdown are not open source,
so either the jdk for arm work as it is
or there is no jdk and the only option is to find an  open source virtual machine that does what you want (and to compile it)

(or ask pdaxrom team to put the support for the old floating point way back into the rom)
SLC-860 cacko / senao wifi

pmf

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
Java 1.3 and Swing in pdaxrom 1.1.0 RC5
« Reply #3 on: November 19, 2004, 01:05:49 pm »
Quote
AFAIK jdks from ibm sun or blackdown are not open source,
so either the jdk for arm work as it is
or there is no jdk and the only option is to find an  open source virtual machine that does what you want (and to compile it)

(or ask pdaxrom team to put the support for the old floating point way back into the rom)
I once had Kaffe working (cross-compiled for an older pdaXrom) with the basic X-backend for AWT/SWING (--with-awt=X), but it was buggy as hell (it could not run more than simple AWT-apps without crashing).

You'll also need GNU Classpath if you decide to go this route.

mr596

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://
Java 1.3 and Swing in pdaxrom 1.1.0 RC5
« Reply #4 on: November 19, 2004, 06:21:27 pm »
I can't see the blackdown Java JRE 1.3.1 working with RC5.  RC5 has the Vector Floating Point emulation which is much (and I do mean much) faster than the generic exception based handling for ARM processors without floating point units.

Every application which used floating point maths required rebuilding for RC5.  For binary only distributions like the ARM Java ports this may prove probematic.  

Is there a JRE port which supports the NetWinder FPU emulation library?  Otherwise could we include both VFP support in the ROM, Native Development and Cross-Compiller but still have the exception based FPU emulation as a (SLOW) backup for pre-compilled binaries ...

Just a thought.

Marc

Vanguard

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • http://
Java 1.3 and Swing in pdaxrom 1.1.0 RC5
« Reply #5 on: November 20, 2004, 06:12:16 am »
As I understand it, applications without VFP support will still work under the new rom, they just won't have the speed advantages of stuff compiled for vfp.  Anyone care to confirm this?

tovarish

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
Java 1.3 and Swing in pdaxrom 1.1.0 RC5
« Reply #6 on: November 20, 2004, 08:18:56 am »
Quote
As I understand it, applications without VFP support will still work under the new rom, they just won't have the speed advantages of stuff compiled for vfp.  Anyone care to confirm this?
no, i think not. the apps will break at a floating point operation. Also the libraries may not be compatible. RC5 uses gcc 3.3.2 while the jvm is compiled with 2.95 i think.

Shouldn't the blackdown port be open source. I havent been able to find the source tho else I could try and recompile it.

tovarish

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Java 1.3 and Swing in pdaxrom 1.1.0 RC5
« Reply #7 on: November 20, 2004, 11:33:29 am »
I think some people were running it under a previous rom (based on 3.x.x glibc) by adding the proper libc.

I'm pretty sure that blackdown jvms are not opensource
SLC-860 cacko / senao wifi

ostense

  • Newbie
  • *
  • Posts: 41
    • View Profile
Java 1.3 and Swing in pdaxrom 1.1.0 RC5
« Reply #8 on: November 22, 2004, 08:46:25 am »
PdaXrom version up to RC5 worked with full java 1.3 for arm . Probably it will not work on RC5. It is possible to compile java 1.4 and 1.5 from source. I am not cababel of doing it , but look at :

http://wwws.sun.com/software/communitysour...2/download.html

Sun have made all the sources ready for download.

Regards
ostense

tovarish

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
Java 1.3 and Swing in pdaxrom 1.1.0 RC5
« Reply #9 on: November 22, 2004, 09:00:20 am »
i will take a look at the sources and try and compile them

tovarish

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Java 1.3 and Swing in pdaxrom 1.1.0 RC5
« Reply #10 on: December 08, 2004, 03:03:12 am »
Quote
no, i think not. the apps will break at a floating point operation. Also the libraries may not be compatible. RC5 uses gcc 3.3.2 while the jvm is compiled with 2.95 i think.
It probably is the case with this version of the Kernel that an FPU opcode will cause an FPE and failure - I don't think that either the NetWinder or fastspe libraries are linked with this kernel.

The issue, however, with supporting FP and soft-float code together is actually mainly compounded because when you compile soft-flat with gcc 2.95 the ABI used to pass float values is different from an FP based and soft-float together. So you can't use libm and a variety of libc calls if your shared libaries are compiled for soft float and your binary is FP based.

Now if you HAVE got the FPE in the kernel AND you statically build your FP based app so it isn't dependent upon the provided shared drivers AND your kernel has an FPE handler then this should work.

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

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Java 1.3 and Swing in pdaxrom 1.1.0 RC5
« Reply #11 on: December 08, 2004, 03:11:31 am »
According to this thread the blackdown seems to be working on pdaxrom rc5.
SLC-860 cacko / senao wifi

ev1l

  • Hero Member
  • *****
  • Posts: 608
    • View Profile
    • http://bbshuffle.blogspot.com/
Java 1.3 and Swing in pdaxrom 1.1.0 RC5
« Reply #12 on: December 11, 2004, 07:35:11 pm »
It's a not-so-secret secret that IBM is going to open-source its JRE, so that might help in the future.

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Java 1.3 and Swing in pdaxrom 1.1.0 RC5
« Reply #13 on: December 12, 2004, 01:48:42 am »
JVM source code is good start, but the port to arm might be easy or might not

see IBM Research Virtual Machine
SLC-860 cacko / senao wifi