Author Topic: Java Environment  (Read 18616 times)

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Java Environment
« on: May 28, 2006, 01:42:31 pm »
Latest JamVM version 1.4.3, see release notes here.

 [ Invalid Attachment ]
[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]

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Java Environment
« Reply #1 on: May 28, 2006, 01:54:27 pm »
Latest GNU Classpath version 0.91, see release notes here.
 
Included in the package is a Graphics2D implementation based on the Cairo Graphics framework, version 1.0.4. Enabling this makes programs like JFreeChart and JEdit start up.

Part 1 is enclosed in this post, part 2 and 3 in next posts (due to forum upload limit). Download all parts and recreate installable package as follows: cat classpath.tar.bz2*.ipk | bunzip2 -c | tar xf -

 [ Invalid Attachment ]
[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]

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Java Environment
« Reply #2 on: May 28, 2006, 01:59:55 pm »
Part 2 of GNU Classpath.
Recreate package as described in previous post.

 [ Invalid Attachment ]
[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]

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Java Environment
« Reply #3 on: May 28, 2006, 02:04:36 pm »
Part 3 of GNU Classpath.
Recreate package as described in previous post.

 [ Invalid Attachment ]
[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]

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Java Environment
« Reply #4 on: May 30, 2006, 06:09:28 am »
woohoo new version

i will try it when i get home in a few weeks time ...
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

darmou

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Java Environment
« Reply #5 on: May 30, 2006, 07:39:53 am »
I have got some problems running jamvm.  Here I' trying to run a hello world app:

public class Hello
{
    public static void main(String args[])
    {
        System.out.println("Hello World");
    }
}

Here is the output of jamvm Hello:

# jamvm Hello
Exception occurred while VM initialising.
java/lang/NoClassDefFoundError: java/lang/Thread

here is my classpath:

# echo $CLASSPATH
/usr/java/jamvm/share/jamvm/classes.zip:/usr/java/classpath/share/classpath/glibj.zip:/usr/java/classpath/share/classpath/tools.zip


If you have any suggestions please let me know.

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Java Environment
« Reply #6 on: May 30, 2006, 04:52:54 pm »
It seems that JamVM expects Classpath to be in /usr/local/classpath
Try symlinking classpath, I'll look into this later.
[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]

darmou

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Java Environment
« Reply #7 on: May 31, 2006, 08:48:48 am »
Quote
It seems that JamVM expects Classpath to be in /usr/local/classpath
Try symlinking classpath, I'll look into this later.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=129042\"][{POST_SNAPBACK}][/a][/div]

Sorry i'm still a bit confiused can you echo your classpath and post it?

Here is my second attempt:

# jamvm Hello
Exception occurred while VM initialising.
java/lang/NoClassDefFoundError: java/lang/Thread
# echo $CLASSPATH
/usr/local/classpath:/usr/java/jamvm/share/jamvm/classes.zip:/usr/local/classpath/glibj.zip:/usr/local/classpath/tools.zip

Thanks,

Daryl

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Java Environment
« Reply #8 on: June 03, 2006, 05:23:49 am »
Quote
Quote
It seems that JamVM expects Classpath to be in /usr/local/classpath
Try symlinking classpath, I'll look into this later.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=129042\"][{POST_SNAPBACK}][/a][/div]

Sorry i'm still a bit confiused can you echo your classpath and post it?

Here is my second attempt:

# jamvm Hello
Exception occurred while VM initialising.
java/lang/NoClassDefFoundError: java/lang/Thread
# echo $CLASSPATH
/usr/local/classpath:/usr/java/jamvm/share/jamvm/classes.zip:/usr/local/classpath/glibj.zip:/usr/local/classpath/tools.zip

Thanks,

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

use jamvm with -Xbootclasspath option and specify the path to classes.zip and glibj.zip

to cortez: maybe you can unify and standardize the location of both jamvm and classpath to /usr/local/java (as the common --prefix). this would make locating all the related files easier, ie related tools like compiler and other tools can also be placed there. /usr/java is problematic on the sharp rom because that location is ro.
btw, i compiled jikes 1.2.2 which can be used to compile java files.
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

darmou

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Java Environment
« Reply #9 on: June 05, 2006, 05:41:42 am »
Quote
use jamvm with -Xbootclasspath option and specify the path to classes.zip and glibj.zip

Like this?

# jamvm -Xbootclasspath /mnt/ide/usr/java/jamvm/share/jamvm/classes.zip:/mnt/ide/usr/java/classpath/share/classpath/glibj.zip
Unrecognised command line option: -Xbootclasspath

# jamvm -version
java version "1.4.2"
JamVM version 1.4.3



Daryl Moulder
« Last Edit: June 05, 2006, 05:43:47 am by darmou »

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Java Environment
« Reply #10 on: June 08, 2006, 09:31:53 am »
ok so i had some time finally and tested the new updated version of jamvm and classpath.

the new jamvm is pretty poor. i dont know what the idea is with jamvm. one version supports -jar and the next does not. the new 1.4.3 does not support -jar option whereas 1.4.2 did.

classpath 0.9.1 adds a lot of features like rmi server and certutil tools, but nothing that is really useful for a zaurus unless you want to turn your zaurus into a server.

i still think jamvm 1.4.2 with classpath 0.20 is the best mix at the moment.

as for the new jamvm, you will need to provide the following options for it to work
here is an example to run jedit:

jamvm -Xbootclasspath:/usr/java/jamvm/share/jamvm/classes.zip:/usr/java/classpath/share/classpath/glibj.zip
-Djava.library.path=/usr/java/classpath/lib -cp /usr/local/share/jedit/4.2/jedit.jar org.gjt.sp.jedit.jEdit

however, jedit does not work properly. xmlj is missing
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

Darth_Sith

  • Full Member
  • ***
  • Posts: 128
    • View Profile
Java Environment
« Reply #11 on: June 12, 2006, 07:16:29 pm »
Hi all.
I don't understand how set classpath in pdaxrom.
If I set an alias or a classpath in /etc/profile it doesn't work.
I have installed classpath ipk, jamvm ipk, and jikes.
With jikes I can compile, but I can't load my java classes, I have an exception in thread class...
Anyone can help me?
I'm new in this world...

SL-C1000 + cacko 1.23F + sd4GB + CFBT + CFWiFi
HTC Polaris