Author Topic: Cacko - Java working?  (Read 2735 times)

vanstrien

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
    • http://www.vanstrien.net
Cacko - Java working?
« 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?
C860 Cacko ROM | 5500 tkcROM
256MB SD | 128MB SD
512MB CF | 256MB CF
D-Link DWL 660 WiFi| Linksys WCF12 WiFi
Socket Bluetooth | Socket Ethernet

ccrandal

  • Full Member
  • ***
  • Posts: 126
    • View Profile
Cacko - Java working?
« Reply #1 on: March 15, 2004, 05:28:58 pm »
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
Zaurus SL-C760
Cacko Qtopia 1.21b
EDGE 512MB CF/Kingston 256MB SD
AmbiCom WL1100C-CF
Socket Bluetooth CF (rev F)

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Cacko - Java working?
« Reply #2 on: March 16, 2004, 01:46:40 am »
Java is not installed in the ROM. It shold be included on the Japanese CD that comes with Zaurus.

ccrandal

  • Full Member
  • ***
  • Posts: 126
    • View Profile
Cacko - Java working?
« Reply #3 on: March 17, 2004, 01:28:17 pm »
Any idea where on the CD it is?  I looked on mine and couldn\'t locate it.

Thanks
Curt
Zaurus SL-C760
Cacko Qtopia 1.21b
EDGE 512MB CF/Kingston 256MB SD
AmbiCom WL1100C-CF
Socket Bluetooth CF (rev F)

zmike

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
    • http://
Cacko - Java working?
« Reply #4 on: March 17, 2004, 02:10:20 pm »
Look for an IPK named something like \"personal-profile\". Believe it or not, that is the java!
SLC860, Zubuntu, Symbol Spectrum24 Wireless CF, 4GB SD Card

ccrandal

  • Full Member
  • ***
  • Posts: 126
    • View Profile
Cacko - Java working?
« Reply #5 on: March 17, 2004, 03:28:00 pm »
Cool.  I saw that one, but had NO idea it had anything to do with Java.  Thanks much.

Curt
Zaurus SL-C760
Cacko Qtopia 1.21b
EDGE 512MB CF/Kingston 256MB SD
AmbiCom WL1100C-CF
Socket Bluetooth CF (rev F)

josephand

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • http://
Cacko - Java working?
« Reply #6 on: March 18, 2004, 01:27:21 pm »
I don\'t see that on my disk.  I have the c700 though.  Is there somewhere else I can get it?

stupkid

  • Hero Member
  • *****
  • Posts: 578
    • View Profile
    • http://
Cacko - Java working?
« Reply #7 on: March 18, 2004, 01:53:55 pm »
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

Zaurus SL-C3200 pdaXii13v2 5.5 / Ambicom WC1100C-CF / Socket Bluetooth Rev G


OpenMoko FreeRunner - Running Tweaked OM2008.x Image

GMan

  • Newbie
  • *
  • Posts: 35
    • View Profile
    • http://
Cacko - Java working?
« Reply #8 on: March 19, 2004, 07:23:07 am »
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).

ccrandal

  • Full Member
  • ***
  • Posts: 126
    • View Profile
Cacko - Java working?
« Reply #9 on: March 19, 2004, 10:58:16 am »
Personal-Profile came with my C750.  So I\'d assume it also comes with the C760 as well.
Zaurus SL-C760
Cacko Qtopia 1.21b
EDGE 512MB CF/Kingston 256MB SD
AmbiCom WL1100C-CF
Socket Bluetooth CF (rev F)

GMan

  • Newbie
  • *
  • Posts: 35
    • View Profile
    • http://
Cacko - Java working?
« Reply #10 on: March 19, 2004, 12:49:49 pm »
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.

stupkid

  • Hero Member
  • *****
  • Posts: 578
    • View Profile
    • http://
Cacko - Java working?
« Reply #11 on: March 19, 2004, 04:51:59 pm »
This might help when generating the appropriate jar:

http://java.sun.com/products/foundation/overview.html

Zaurus SL-C3200 pdaXii13v2 5.5 / Ambicom WC1100C-CF / Socket Bluetooth Rev G


OpenMoko FreeRunner - Running Tweaked OM2008.x Image

GMan

  • Newbie
  • *
  • Posts: 35
    • View Profile
    • http://
Cacko - Java working?
« Reply #12 on: March 20, 2004, 08:50:39 am »
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 * inner
      Results (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 = 22958
          Just 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 =1440
              For 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 around
                  Results:
                    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.