Poll

Have you run any Java applications on your Zaurus?  (Other than the preinstalled ones)

No
3 (23.1%)
Yes
10 (76.9%)

Total Members Voted: 0

Author Topic: Can you modify Zaurus to run normal Java (J2SE or J2EE) app?  (Read 4908 times)

TonyOlsen

  • Hero Member
  • *****
  • Posts: 554
    • View Profile
    • http://www.userdimensions.com/Tony/Resume.html
Can you modify Zaurus to run normal Java (J2SE or J2EE) app?
« on: April 23, 2004, 10:39:02 am »
The Zaurus is compatible with J2ME (Java 2 - Micro Edition).  J2ME has most of the core Java classes and has different memory management for smaller memory devices.

Is there a way to run J2SE (Java 2 - Standard Edition... most Java Application on the Internet are this) or even J2EE (Java 2 - Enterprise Edition) on your Zaurus?

Is it simply a matter of adding the missing classes, or do you need to install a new different JVM (Java Virtual Machine) for J2SE or J2EE?

Thanks in advance!! =)
Tony Olsen
Ferris@Myself.Com
Resume
Zaurus SL-C860 QTopia
2 GB Static CF
1 GB MMC (although it isn't working yet)
My Quest: To get an x86 emulator working on my Zaurus and to have my Zaurus replace my laptop as my MAIN computer
Publically available Videos for the default Zaurus SL-C860 video player

doseas

  • Full Member
  • ***
  • Posts: 207
    • View Profile
    • http://
Can you modify Zaurus to run normal Java (J2SE or J2EE) app?
« Reply #1 on: April 23, 2004, 04:54:36 pm »
Sun PersonalProfile is a J2ME compatible virtual machine:
http://java.sun.com/developer/earlyAccess/pp4zaurus/

TonyOlsen

  • Hero Member
  • *****
  • Posts: 554
    • View Profile
    • http://www.userdimensions.com/Tony/Resume.html
Can you modify Zaurus to run normal Java (J2SE or J2EE) app?
« Reply #2 on: April 23, 2004, 05:01:15 pm »
So do I understand that correctly... that is a J2SE (not J2ME) Java Virtual Machine for the Zaurus?
Tony Olsen
Ferris@Myself.Com
Resume
Zaurus SL-C860 QTopia
2 GB Static CF
1 GB MMC (although it isn't working yet)
My Quest: To get an x86 emulator working on my Zaurus and to have my Zaurus replace my laptop as my MAIN computer
Publically available Videos for the default Zaurus SL-C860 video player

doseas

  • Full Member
  • ***
  • Posts: 207
    • View Profile
    • http://
Can you modify Zaurus to run normal Java (J2SE or J2EE) app?
« Reply #3 on: April 23, 2004, 06:06:19 pm »
Oops, sorry... PersonalProfile is J2ME not J2SE.

TonyOlsen

  • Hero Member
  • *****
  • Posts: 554
    • View Profile
    • http://www.userdimensions.com/Tony/Resume.html
Can you modify Zaurus to run normal Java (J2SE or J2EE) app?
« Reply #4 on: April 23, 2004, 11:37:24 pm »
So, if I have J2ME (Personal Java or Micro Edition Java), can I still run J2EE applications if I simply supply the remaining missing classes to the classpath... or is there more to it than that?
Tony Olsen
Ferris@Myself.Com
Resume
Zaurus SL-C860 QTopia
2 GB Static CF
1 GB MMC (although it isn't working yet)
My Quest: To get an x86 emulator working on my Zaurus and to have my Zaurus replace my laptop as my MAIN computer
Publically available Videos for the default Zaurus SL-C860 video player

gene

  • Newbie
  • *
  • Posts: 45
    • View Profile
    • http://www.fastcube.com
Can you modify Zaurus to run normal Java (J2SE or J2EE) app?
« Reply #5 on: April 23, 2004, 11:47:22 pm »
Dont quote me but i believe that i have read that J2ME is compatible with JDK 1.3 not 1.4 or the upcoming 1.5. I hope that answers your question.

Tehas

  • Full Member
  • ***
  • Posts: 157
    • View Profile
    • http://users.adelphia.net/~stonerrl/rick/
Can you modify Zaurus to run normal Java (J2SE or J2EE) app?
« Reply #6 on: April 24, 2004, 12:10:03 am »
I\'ve been writing AWT apps using my regular J2SE compiler on my workstation and then porting the class files to the Zaurus and running them.  You have to stick with AWT (not Swing).  I\'m also writing apps using JDBC against MySQL and SQLite both of which are running/installed on my Zaurus.

My on-the-horizon project is to look into JMS to see if I can access my company\'s Customer Service MQSeries queues to display a customer\'s information on my Z.  That would be a cool demo!  I\'m thinking that all that I\'d need to do is bring over the J2EE.Jar file in order to get access to the  Javax classes.  Time will tell.
+SL-5600 v1.32 ROM (Special pre-emptive kernel with overclock)  +Viking 256CF  +SimpleTech 256CF  +Viking 128SD (as ext2)  +AmbiCom WL1100C +Micro Innovations KB  +Hawking Ethernet CF  
+SL6000L +Lexar 1GB SD (as ext2)  +Windows 98/Me/Nt/XP  +Mandrake 8.1 My Zaurus Page[img]http://users.adelphia.net/~stonerrl/rick/rls_userbar.gif\" border=\"0\" class=\"linked-sig-image\" /]

TonyOlsen

  • Hero Member
  • *****
  • Posts: 554
    • View Profile
    • http://www.userdimensions.com/Tony/Resume.html
Can you modify Zaurus to run normal Java (J2SE or J2EE) app?
« Reply #7 on: April 24, 2004, 12:27:43 am »
So, in a nutshell... most J2SE apps might work in J2ME simply because they don\'t use the classes that aren\'t in J2ME?...

If an app DOES use a class that J2ME doesn\'t provide, can I simply copy the missing classes it over and it will work?
Tony Olsen
Ferris@Myself.Com
Resume
Zaurus SL-C860 QTopia
2 GB Static CF
1 GB MMC (although it isn't working yet)
My Quest: To get an x86 emulator working on my Zaurus and to have my Zaurus replace my laptop as my MAIN computer
Publically available Videos for the default Zaurus SL-C860 video player

mcamou

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
    • http://
Can you modify Zaurus to run normal Java (J2SE or J2EE) app?
« Reply #8 on: April 24, 2004, 06:47:33 pm »
It seems there\'s a way of running the Blackdown JDK on top of the PdaXRom. Check out: http://www.zaurususergroup.com/index.php?n...light=blackdown (haven\'t tried it myself since I don\'t use the PdaXRom)

DrWowe

  • Hero Member
  • *****
  • Posts: 696
    • View Profile
    • http://
Can you modify Zaurus to run normal Java (J2SE or J2EE) app?
« Reply #9 on: April 24, 2004, 06:52:59 pm »
There should be a \"not yet\" option.  I\'m working on one that I intend to run on both my Z and my phone.

TonyOlsen

  • Hero Member
  • *****
  • Posts: 554
    • View Profile
    • http://www.userdimensions.com/Tony/Resume.html
Can you modify Zaurus to run normal Java (J2SE or J2EE) app?
« Reply #10 on: April 24, 2004, 10:56:37 pm »
Sorry about forgeting the \"Not yet\" in the survey.  I\'ll try to remember it next time.
Tony Olsen
Ferris@Myself.Com
Resume
Zaurus SL-C860 QTopia
2 GB Static CF
1 GB MMC (although it isn't working yet)
My Quest: To get an x86 emulator working on my Zaurus and to have my Zaurus replace my laptop as my MAIN computer
Publically available Videos for the default Zaurus SL-C860 video player

filmil

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • http://
Can you modify Zaurus to run normal Java (J2SE or J2EE) app?
« Reply #11 on: May 09, 2004, 09:45:16 am »
Quote
Is there a way to run J2SE (Java 2 - Standard Edition... most Java Application on the Internet are this) or even J2EE (Java 2 - Enterprise Edition) on your Zaurus?

Is it simply a matter of adding the missing classes, or do you need to install a new different JVM


In short: the answer is YES.

You can run J2SE on Zaurus. I am doing that, and have some Swing applications happily drawing on the 640x480 screen. Go to http://www.blackdown.org and fetch the j2sdk 1.3.1 for arm. If you want to run Swing you will then also need to install X Window System for Zaurus, and it in turn needs a set of tools which need a set of libraries etc. If you are feeling adventurous, try the excercise. Or you can try going to:
http://www.dimes.tudelft.nl/wimtiwon/COMBINED/zaurus/,  the site of our ingenious Java-enabled sysadmin (he was born on the island of Java:) who made all the packages for java click-install on Zaurus.

There\'s a catch however. Note that the j2sdk version is 1.3.1, so you will have to settle for the classes that existed at the time 1.3.1 was current. It may or may not be a problem. Blackdown people promised a 1.4.x a looong time  ago.

And to answer the second part of your question, just copying the classes from a j2se will not work, although cvm can read them. But it dies either with a security exception or with version unsupported exception when it comes to classes that are not part of the PJAVA profile (i.e. j2me).

f

mcamou

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
    • http://
Can you modify Zaurus to run normal Java (J2SE or J2EE) app?
« Reply #12 on: May 09, 2004, 03:11:13 pm »
Haven\'t tried it (yet), but from what I know about the way Java works it should be possible to work around those classes that die with a SecurityException. It turns out that the JVM will not load any classes that are in the java.* from the CLASSPATH, but only from a special \"extension classpath\". In the normal JDK this contains all the .jar files in the $JRE/lib/ext directory ($JRE is where the JRE resides. If you have a JDK and $JDK is the directory where it is installed, use $JDK/jre/lib/ext). How this maps into the cvm and J2ME, I have no idea.