OESF Portables Forum
Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => Cxx0 General discussions => Topic started by: TonyOlsen 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!! =)
-
Sun PersonalProfile is a J2ME compatible virtual machine:
http://java.sun.com/developer/earlyAccess/pp4zaurus/ (http://java.sun.com/developer/earlyAccess/pp4zaurus/)
-
So do I understand that correctly... that is a J2SE (not J2ME) Java Virtual Machine for the Zaurus?
-
Oops, sorry... PersonalProfile is J2ME not J2SE.
-
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?
-
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.
-
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.
-
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?
-
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 (https://www.oesf.org/forums/index.php?showtopic=2255&highlight=blackdown) (haven\'t tried it myself since I don\'t use the PdaXRom)
-
There should be a \"not yet\" option. I\'m working on one that I intend to run on both my Z and my phone.
-
Sorry about forgeting the \"Not yet\" in the survey. I\'ll try to remember it next time.
-
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 (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/ (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
-
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.