OESF Portables Forum

Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => Personal Java/Jeode/J2ME Personal Profile => Topic started by: cekin on June 28, 2004, 06:10:32 am

Title: SLC-860 supports only J2ME PP (?)
Post by: cekin on June 28, 2004, 06:10:32 am
I've tried to run PocketDesign on a SLC-860, but I've run into problems instead. The application wouldn't launch, intepreter complains that class "java.io.StringBufferInputStream" cannot be found (NoClassDefFoundError).

Research has lead me to Java Programming Guide:
http://www.zaurus.com/dev/support/download...-guide_v110.pdf (http://www.zaurus.com/dev/support/downloads/java_programming-guide_v110.pdf)
which explains that J2ME PP doesn't support some of Java features that were previously available in PersonalJava (such as java.io.StringBufferInputStream).

It seems that on some Zaurus machines (like SL-5500) the original Java was PersonaJava (Jeode by Insignia) with an option to install J2ME PP (from Sun).

Unfortunately SLC-860 is equipped only with J2ME PP, and applications that do not conform to it would not run... Sharp site has some explanations, unfortunately in Japanese:
http://support.ezaurus.com/sl-c860/qa/qa-s...platform-04.asp (http://support.ezaurus.com/sl-c860/qa/qa-slc860-platform-04.asp)

If you have an idea how to get PersonalJava running on on SLC-860, please share it.
Title: SLC-860 supports only J2ME PP (?)
Post by: zenyatta on June 28, 2004, 09:54:53 am
The JeodCreator (http://killefiz.de/zaurus/showdetail.php?app=521) can be used to extract the Jeode environment from an original 5500 ROM into an .ipk. I doubt it would help you, though, as the hardware is quite different.

Another way to make things work would be to implement the missing classes, package them as a .jar and put it in your CLASSPATH. A StringBufferInputStream doesn't look that difficult (and could be really easy if you used Sun's source code - although that would probably be illegal  ).

Maybe someone somewhere has already created such a .jar so try googling around ("j2me personalJava compatibility layer" perhaps?).

z.
Title: SLC-860 supports only J2ME PP (?)
Post by: stupkid on June 29, 2004, 02:38:13 pm
You can have both JRE's (J2ME PP and Jeode) at the same time.  Just install the Jeode package from the ZUG downloads:

http://www.zaurususergroup.com/modules.php...eq=getit&lid=38 (http://www.zaurususergroup.com/modules.php?op=modload&name=UpDownload&file=index&req=getit&lid=38)

Then run your app with evm (Jeode) or cvm (J2ME).

Hope this helps!
Title: SLC-860 supports only J2ME PP (?)
Post by: cekin on June 30, 2004, 06:52:12 am
The Jeode package installs on SL-C860 and replaces J2ME PP - they both have "evm" executable, so a simple ipkg install does not allow you to have both at the same time. I guess you would just need to rename evm->cvm prior to Jeode installation. PocketDesign now runs, ZX4Z is actually useful - it was extremely slow under J2ME PP.

Anyway, all Java applications for Zarusu that I have seen so far are written for Jeode, so not having J2ME is not a problem.

Thank you for the tip :-)
Title: SLC-860 supports only J2ME PP (?)
Post by: Stubear on June 30, 2004, 11:51:43 am
Sorry I have to disagree with you here - J2ME PP does not have "evm", evm on the Cx60 before installing jeode is a bash script that doesn some minor translation and calls /home/QtPalmtop/java/j2me/bin/cvm with whatever arguments you called evm with. Generally this allows programs designed for jeode to work with J2ME PP, but not all.

After installing jeode, which overwrites the evm script, you need to manually make a symlink from /home/QtPalmtop/java/j2me/bin/cvm to /home/QtPalmtop/bin/cvm so that run j2me pp apps using "cvm", while jeode apps can be called via "evm"

I know for a fact that this works (ie installing both J2ME PP and Jeode) on a C760 because I have had both installed for about 2 months now.

Stu
Title: SLC-860 supports only J2ME PP (?)
Post by: stupkid on July 01, 2004, 11:10:26 am
Thanks for clearing that up Stubear.  I knew that you could have both installed, but I just got the details of cvm/evm confused.
Title: SLC-860 supports only J2ME PP (?)
Post by: TonyOlsen on November 27, 2004, 10:03:09 am
What are PocketDesign and ZX4Z?  Where can I learn more about them and download them?

Thanks.
Title: SLC-860 supports only J2ME PP (?)
Post by: cekin on November 28, 2004, 02:43:50 pm
Quote
What are PocketDesign and ZX4Z?  Where can I learn more about them and download them?

PocketDesign is a drawing tool written in Java:
http://vzimmermann.free.fr/pocketdesign/ (http://vzimmermann.free.fr/pocketdesign/)

ZX4Zaurus is a ZX Spectrum emulator for Zaurus, also written in Java:
http://www.killefiz.de/zaurus/showdetail.php?app=295 (http://www.killefiz.de/zaurus/showdetail.php?app=295)
Title: SLC-860 supports only J2ME PP (?)
Post by: TonyOlsen on November 28, 2004, 08:50:59 pm
Ah... thanks!