OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: vanstrien on March 15, 2004, 04:54:30 pm
-
First off, thanks guys for the Cacko rom. I\'ve been using it for a few weeks now and am really impressed.
One problem is that java isn\'t working for me. Specifically I get errors referring to cvm. I\'ve tried a symlink evm to cvm but I still can\'t get it to work.
Has anyone else had similar experiences with the new cacko rom?
-
I ran the command `evm -version` and received and error that /home/QtPalmtop/j2me/bin/cvm was not found. I don\'t know much about evm or cvm, but perhaps we have a similar problem here.
Curt
-
Java is not installed in the ROM. It shold be included on the Japanese CD that comes with Zaurus.
-
Any idea where on the CD it is? I looked on mine and couldn\'t locate it.
Thanks
Curt
-
Look for an IPK named something like \"personal-profile\". Believe it or not, that is the java!
-
Cool. I saw that one, but had NO idea it had anything to do with Java. Thanks much.
Curt
-
I don\'t see that on my disk. I have the c700 though. Is there somewhere else I can get it?
-
You could also use Jeode to run Java Apps. It\'s in the ZUG downloads section. I don\'t have my CD handy at the moment te get the personal-profile package. I\'ve had success with both Jeode and Java Personal Profile on my c860. YMMV
-
Does the personalprofile only come with the C860? I am thinking about writing an application and wasn\'t sure how common this VM was in comparison to the Jeode one (PersonalJava1.2).
-
Personal-Profile came with my C750. So I\'d assume it also comes with the C760 as well.
-
Thanks ccrandal for the info - so at least every one with a C750 or greater can have the PP. I might write an app with the PP in mind since it has some things that are missing from Jeode and doesn\'t have some of the issues below.
PP seems to pick up the font size from the environment so the default font size on buttons and things are larger than with Jeode. Another difference is how the VM sizes the window. I think PP takes into account all the window decorations when you set the window size, while Jeode takes the client area (at least in my observations). Another weird thing is that the VMs report the screen size differently (640x442 for PP vs 636x440) and Jeode has some occasional issues refreshing the UI. Before I uninstall Jeode, I\'ll probably see which ones faster through some simple tests.
Anybody setup a java compiler on the Z that has the full PP support? Right now I am using jdk1.1.8 classes.zip for compilation/classpath. I know that PP uses a subset of JDK1.3 so I guess I\'ll try to pull classes/compiler from that version - or maybe just trim down the blackdown one so its smaller.
-
This might help when generating the appropriate jar:
http://java.sun.com/products/foundation/overview.html (http://java.sun.com/products/foundation/overview.html)
-
I did some simple perf testing between Jeode and Sun. I took the Jeode package from the ZUG download section and the Sun package from my C860 disk (personalprofile...ipk). I compiled my simple tests on the Z using Jikes and the 1.1.8 classes.zip and all of my testing relied on the standard Java classes used by both. I had 4 tests:
For loop - Looped 25000 times; setting an array value indexed by current loop value to current loop value
Int Additions - Looped 50000 times; totalling up the numbers from 1-50K
Float Additions - Same as above, but incremented by .308474f each time.
Long Math - Nested loops 5000 over the inner 3000; each time keeping a running total of outer * innerResults (all times in millis):
For Loop: Jeode = 9; Sun = 16
Int Additions: Jeode = 4; Sun =19
Float Additions: Jeode = 282; Sun = 1225
Long Math: Jeode 1295; Sun = 22958Just in case either VM had a JIT (Jeode looks like it JITs before running - it takes longer to start), I ran all the tests above in a loop for 5 times. The times listed are for the last run.
For Loop: Jeode = 5; Sun = 5
Int Additions: Jeode = 1; Sun =2
Float Additions: Jeode = 273; Sun = 248
Long Math: Jeode 1273; Sun =1440For AWT testing, I used the applets that came with Sun. I didn\'t time these, so these were more personal observations.
Tumbling duke - simple animation
TicTacToe - game
Graph - graph of interconnected nodes showing relationship that you can drag aroundResults:
Tumbling Duke: Jeode would not show animation; Sun ran fine (as expected)
TicTacToe: No difference in speed; Jeode played the sounds
much better; the same sounds played by Sun had some static/crackling.
GraphLayout: Jeode displayed more lag than Sun when dragging around the center graph node (which made every other node move).
As mentioned in my previous post, Jeode displayed some graphical glitches in a small AWT program I had written. Personally, I think that even though Sun\'s VM was slower, the better AWT performance wins out since most apps are graphical - plus it seems to have a JIT so it will gradually speed up (in my tests it seemed to speed up on run 3 out of 5). However, if you need raw speed for computations then Jeode is the way to go.