Author Topic: Sun J2me Kvm Available  (Read 13401 times)

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Sun J2me Kvm Available
« Reply #15 on: November 17, 2005, 06:59:17 pm »
Quote
Quote
You can get rid of the annoying font messages by editing font.properties and commenting out all the lines containing adobe.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103961\"][{POST_SNAPBACK}][/a][/div]

Thanks Meanie. Already done!
Apart from that, I'm testing the difference between the combination jdk118+swingZ.jar and the all new j2se131, and I'm not very satisfied.
The problem, in my very humble opinion, is that "tools.jar" is a huge thing. For compiling anything, it takes quite a lot of time and it's not precisely a thunder at running time.
It is necessary to be much more precise at programming time. For example, in my laptop, if I'm using swing, I write at the beginning:
import javax.swing.*;
and then, when needed, I write something like:
JPanel myPanel = new JPanel();
All that due to the fact that I don't use any kind of Eclipse or JBorland or Netbeans...

If used in the zaurus, it is very important to write the whole path everytime, and only import what will be used. For the example above, it would be:

import javax.swing.JPanel;
.....................................
javax.swing.Jpanel myPanel = new javax.swing.JPanel();

Anyway, the combination jdk118+swingZ.jar works quicker and better.

What do you think if we do (between you and myself and any other that would want) a new distribution of a serious, complete JDK for Zauruses?
My idea is to have something like Personal Java but bigger and with a complete AWT and the most used Swing and Java2. There are a lot of classes that are not used almost never. So, one aspect would be to remove everything unnecesary.
You have done already something very similar, so your work could be the start-up to begin with.
My personal interest is "profesional educational scientific programming" (it sounds impressive!!). So, Kopi, for example, but also Jikes, do not compile o.k. if using intensive float operations with double numbers, parsing text to double and all that stuff.
Another point is the "slowness" of zauruses in moving screen-pixels. So, I'm afraid that a part of the software should be done using the primitives for the framebuffer and/or the X's. Surely, those great guys from pdaXrom would be an enormous help.

I look forward to your ideas about all that.

smuelas
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104034\"][{POST_SNAPBACK}][/a][/div]

yeah kopi and jikes compilers are smaller and faster but the compiled code lack precision when crunching numbers.

unfortunately, bundling java with less classes would violate the java license, so its either full bloated j2se (with all APIs implemented, ie all the classes) or reduced j2me API (which does not have swing and awt). That's why it doesnt all come prepackaged together for you and why you have to puzzle it together yourself
« Last Edit: November 17, 2005, 07:01:44 pm by Meanie »
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Sun J2me Kvm Available
« Reply #16 on: November 17, 2005, 08:15:26 pm »
Quote
Quote
Quote
You can get rid of the annoying font messages by editing font.properties and commenting out all the lines containing adobe.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103961\"][{POST_SNAPBACK}][/a][/div]

Thanks Meanie. Already done!
Apart from that, I'm testing the difference between the combination jdk118+swingZ.jar and the all new j2se131, and I'm not very satisfied.
The problem, in my very humble opinion, is that "tools.jar" is a huge thing. For compiling anything, it takes quite a lot of time and it's not precisely a thunder at running time.
It is necessary to be much more precise at programming time. For example, in my laptop, if I'm using swing, I write at the beginning:
import javax.swing.*;
and then, when needed, I write something like:
JPanel myPanel = new JPanel();
All that due to the fact that I don't use any kind of Eclipse or JBorland or Netbeans...

If used in the zaurus, it is very important to write the whole path everytime, and only import what will be used. For the example above, it would be:

import javax.swing.JPanel;
.....................................
javax.swing.Jpanel myPanel = new javax.swing.JPanel();

Anyway, the combination jdk118+swingZ.jar works quicker and better.

What do you think if we do (between you and myself and any other that would want) a new distribution of a serious, complete JDK for Zauruses?
My idea is to have something like Personal Java but bigger and with a complete AWT and the most used Swing and Java2. There are a lot of classes that are not used almost never. So, one aspect would be to remove everything unnecesary.
You have done already something very similar, so your work could be the start-up to begin with.
My personal interest is "profesional educational scientific programming" (it sounds impressive!!). So, Kopi, for example, but also Jikes, do not compile o.k. if using intensive float operations with double numbers, parsing text to double and all that stuff.
Another point is the "slowness" of zauruses in moving screen-pixels. So, I'm afraid that a part of the software should be done using the primitives for the framebuffer and/or the X's. Surely, those great guys from pdaXrom would be an enormous help.

I look forward to your ideas about all that.

smuelas
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104034\"][{POST_SNAPBACK}][/a][/div]

yeah kopi and jikes compilers are smaller and faster but the compiled code lack precision when crunching numbers.

unfortunately, bundling java with less classes would violate the java license, so its either full bloated j2se (with all APIs implemented, ie all the classes) or reduced j2me API (which does not have swing and awt). That's why it doesnt all come prepackaged together for you and why you have to puzzle it together yourself
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104105\"][{POST_SNAPBACK}][/a][/div]


If you don't mind .02 usd from someone with no useful knowledge... maybe the full j2se would be a good choice?  Storage gets cheaper by the minute and embedded devices get faster by the season. If it worked useably, I think you'd see a lot of enthusiasm for it among us end-user types  and it would be a development path that would make next gen devices better rather than forcing the a reinvention of the wheel.
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

smuelas

  • Full Member
  • ***
  • Posts: 110
    • View Profile
Sun J2me Kvm Available
« Reply #17 on: November 18, 2005, 01:40:28 pm »
Quote
yeah kopi and jikes compilers are smaller and faster but the compiled code lack precision when crunching numbers.

unfortunately, bundling java with less classes would violate the java license, so its either full bloated j2se (with all APIs implemented, ie all the classes) or reduced j2me API (which does not have swing and awt). That's why it doesnt all come prepackaged together for you and why you have to puzzle it together yourself
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104105\"][{POST_SNAPBACK}][/a][/div]

I see...  Well, perhaps Sun would be happy to accept something well done...

Anyway, I am trying now the "old" combination (jdk118+swingZ.jar) in an environement of (pdaXrom+Debian)  where Debian is used only for "rare" applications not found in pdaXrom AND Java and "chrooting" only for launching the applications. (This is done according to instructions on this list). The combination is incredible, very, very good, (thanks Pgas), and now my quite big Java applications that I have tested work at a reasonably speed, and I can write, compile and run everything without leaving the 6000.
BTW, I have modified the files for the keyboard and now the absurdity of the "tab+Caps_Lock" is finished. I have also implemented the signs:  { } [ ] \ ^   The right-Shift is the new Caps_Lock, and Tab is only Tab.

smuelas
Zaurus SL-6000  --  Microdrive Hitachi 6Gb placed permanently on CF slot.

plcg

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://
Sun J2me Kvm Available
« Reply #18 on: November 22, 2005, 01:57:27 pm »
Quote
Quote
Hello

i compiled midp2 kvm for zaurus. Only ssl stuff unsupported because sun excluded it from source pack. Also i fixed bug in Xserver for 16 bits chars (need was fix it before  ).
If you like it i will upload for your testing.

screens attached
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104056\"][{POST_SNAPBACK}][/a][/div]
Hello sashz,

I would like to test midp2 kvm.
Can you upload it, please ?

Thanks,
plcg
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104094\"][{POST_SNAPBACK}][/a][/div]
Hello,

No news about midp2 ?  

plcg
C760 & Pdaxrom 1.1.0beta1 / Transcend 512 MB CF
C1000 & Cacko 1.23 full / PQI 1 GB SD/ Hitachi 2GB microdrive
Linksys WCF12 CF WiFi Card

Fatty

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • http://
Sun J2me Kvm Available
« Reply #19 on: November 23, 2005, 02:32:02 pm »
Quote
I continue, sorry.
But before I want to thank Pgas for his help. My first contact with pdaXrom was the day before yesterday. I had some troubles and I put a message on this list. Pgas answered me and in a very few lines he solved all my problems, including Java. Grreat guy, Pgas!!

You can download jre from
http://www.double.co.nz/zaurus/blackdown-jdk_1.3.1_arm.ipk

The next point is to be able to compile *.java files in the Z. For doing that, you need to download the original j2sdk-1.3.1 from blackdown.org. There is no such thing for arm. You must do it for i386. It is a compressed tar package. Unpack it wherever you want. Then, find the file "tools.jar" and move or copy it to the zaurus. It should be included in your:  /usr/local/j2re1.3.1/lib/ext/  . Nothing more.
Then, create 3 files in j2re1.3.1/bin with the names: "javac", "jar", and "appletviewer". Edit them.  Only one line for each one. For "javac" write:
java sun.tools.javac.Main $1
For "jar", almost the same:
java sun.tools.jar.Main $1
and for "appletviewer", just write
java sun.applet.AppletViewer $1
and that's all. If you have stablished your PATH you can compile your *.java files with javac. You can create java-packages with jar and launch and view your applets with appletviewer. Nice, isn't it..
 Sorry, I forgot. Don't forgat to make your scripts executables with:
chmod +x javac
and so on.

smuelas
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103899\"][{POST_SNAPBACK}][/a][/div]

I installed blackdown and followed the instructions to create 'javac' tool and it works fine at first, able to compile a little java program with swing. But after I reboot the Z, when I run javac again I get

"error while loading shared libraries: libBrokenLocale.so.1: cannot open shared object file: No such file or directory"

But I didn't do anything else before reboot. Any clue?
C1000 - Empty, waiting for Sharp ROM.
C3100 - dualbooting Andromeda Debian from 2or0 and Zubuntu 2.0 from Cortez
iPhone 3G.
Kohjinsha - Win 7

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Sun J2me Kvm Available
« Reply #20 on: November 23, 2005, 06:42:56 pm »
Quote
Quote
I continue, sorry.
But before I want to thank Pgas for his help. My first contact with pdaXrom was the day before yesterday. I had some troubles and I put a message on this list. Pgas answered me and in a very few lines he solved all my problems, including Java. Grreat guy, Pgas!!

You can download jre from
http://www.double.co.nz/zaurus/blackdown-jdk_1.3.1_arm.ipk

The next point is to be able to compile *.java files in the Z. For doing that, you need to download the original j2sdk-1.3.1 from blackdown.org. There is no such thing for arm. You must do it for i386. It is a compressed tar package. Unpack it wherever you want. Then, find the file "tools.jar" and move or copy it to the zaurus. It should be included in your:  /usr/local/j2re1.3.1/lib/ext/  . Nothing more.
Then, create 3 files in j2re1.3.1/bin with the names: "javac", "jar", and "appletviewer". Edit them.  Only one line for each one. For "javac" write:
java sun.tools.javac.Main $1
For "jar", almost the same:
java sun.tools.jar.Main $1
and for "appletviewer", just write
java sun.applet.AppletViewer $1
and that's all. If you have stablished your PATH you can compile your *.java files with javac. You can create java-packages with jar and launch and view your applets with appletviewer. Nice, isn't it..
 Sorry, I forgot. Don't forgat to make your scripts executables with:
chmod +x javac
and so on.

smuelas
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103899\"][{POST_SNAPBACK}][/a][/div]

I installed blackdown and followed the instructions to create 'javac' tool and it works fine at first, able to compile a little java program with swing. But after I reboot the Z, when I run javac again I get

"error while loading shared libraries: libBrokenLocale.so.1: cannot open shared object file: No such file or directory"

But I didn't do anything else before reboot. Any clue?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104714\"][{POST_SNAPBACK}][/a][/div]

run ldconfig
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

smuelas

  • Full Member
  • ***
  • Posts: 110
    • View Profile
Sun J2me Kvm Available
« Reply #21 on: November 24, 2005, 02:08:58 am »
Quote
Quote
I installed blackdown and followed the instructions to create 'javac' tool and it works fine at first, able to compile a little java program with swing. But after I reboot the Z, when I run javac again I get

"error while loading shared libraries: libBrokenLocale.so.1: cannot open shared object file: No such file or directory"

But I didn't do anything else before reboot. Any clue?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104714\"][{POST_SNAPBACK}][/a][/div]

run ldconfig
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104733\"][{POST_SNAPBACK}][/a][/div]

BTW, this is a problem not only with Java but also with other applications. I have included "ldconfig" in some of the init scripts of /etc/rc.d/init.d/. (I don't remember at this moment which one). I recommend to do it before launching the X's when rebooting the Zaurus.
smuelas
Zaurus SL-6000  --  Microdrive Hitachi 6Gb placed permanently on CF slot.

Fatty

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • http://
Sun J2me Kvm Available
« Reply #22 on: November 24, 2005, 07:16:32 am »
Quote
Quote
Quote
I installed blackdown and followed the instructions to create 'javac' tool and it works fine at first, able to compile a little java program with swing. But after I reboot the Z, when I run javac again I get

"error while loading shared libraries: libBrokenLocale.so.1: cannot open shared object file: No such file or directory"

But I didn't do anything else before reboot. Any clue?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104714\"][{POST_SNAPBACK}][/a][/div]

run ldconfig
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104733\"][{POST_SNAPBACK}][/a][/div]

BTW, this is a problem not only with Java but also with other applications. I have included "ldconfig" in some of the init scripts of /etc/rc.d/init.d/. (I don't remember at this moment which one). I recommend to do it before launching the X's when rebooting the Zaurus.
smuelas
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104763\"][{POST_SNAPBACK}][/a][/div]

Thank you so much. It works now.
C1000 - Empty, waiting for Sharp ROM.
C3100 - dualbooting Andromeda Debian from 2or0 and Zubuntu 2.0 from Cortez
iPhone 3G.
Kohjinsha - Win 7

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Sun J2me Kvm Available
« Reply #23 on: November 27, 2005, 07:04:30 am »
Just to keep you updated, a new VM is coming up, after the smallest of VM's (KVM) I'm getting close to getting CVM working.

Edited:
I'm still wrestling to get this working. The KVM with Foundation and Personal profile is working, but I'm tweakin' the Makefiles to get AWT and Swing support for X11 working.     I'm almost there...
« Last Edit: December 01, 2005, 05:21:50 pm by cortez »
[div align=\"center\"]== == == == == == == == == == == == == ==
www.omegamoon.com
Zaurus SL-C750 - Died in a dreadful coffee experiment, has a second life somewhere in the Czech Republic
Zaurus SL-C1000 - Multiboot Zubuntu, Debian, Fedora, Poky, Android and others
Zaurus SL-C3100 - Development device, currently Zubuntu 2.0
Zaurus SL-6000L - The fridge is running Zubuntu 1.0
Zaurus SL-C860 - Cacko, untouched since kindly donated, waiting for Zubuntu
== == == == == == == == == == == == == ==[/div]

anunakin

  • Sr. Member
  • ****
  • Posts: 340
    • View Profile
    • http://vivaphp.net
Sun J2me Kvm Available
« Reply #24 on: March 16, 2006, 06:33:13 am »
Quote
Just to keep you updated, a new VM is coming up, after the smallest of VM's (KVM) I'm getting close to getting CVM working.

Edited:
I'm still wrestling to get this working. The KVM with Foundation and Personal profile is working, but I'm tweakin' the Makefiles to get AWT and Swing support for X11 working.     I'm almost there...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=105100\"][{POST_SNAPBACK}][/a][/div]

Any hope to have a MIDP 2 ipk ?
[img]http://www.vivaphp.net/imagens/rev2.jpg\" border=\"0\" class=\"linked-sig-image\" /]
Anunakin (Marcus Fazzi)

Nokia N900 32GB + microSD 2GB
Nokia N810 w/ microSD 8GB
Nokia 5310 XpressMusic w/ microSD 1GB
HP48GX->Psion Sienna->Palm m130->Tungsten T->Zaurus SL-5500->C3000->C3100 ALL SOLD

My FEED(On Line AGAIN!!!)