Author Topic: Java Environment  (Read 7263 times)

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Java Environment
« on: February 07, 2006, 04:42:54 pm »
GNU Classpath 0.20, Essential Libraries for Java, is a GNU project to create free core class libraries for use with virtual machines and compilers for the java programming language.

Recreate package as follows: cat classpath.tar.bz2*.ipk | bunzip2 -c | tar xf -

Part 1 in this post, part 2 in next post (due to forum upload limit )

 [ Invalid Attachment ]  (updated!)
« Last Edit: February 08, 2006, 09:07:48 am 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]

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Java Environment
« Reply #1 on: February 07, 2006, 04:45:43 pm »
Part 2 of GNU Classpath 0.20
Recreate package as described in first post.

 [ Invalid Attachment ]  (Updated!)
« Last Edit: February 08, 2006, 09:10:24 am 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]

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Java Environment
« Reply #2 on: February 07, 2006, 04:48:29 pm »
JamVM 1.4.2 is a new Java Virtual Machine which conforms to the JVM specification version 2 (blue book). In comparison to most other VM's (free and commercial) it is extremely small, with a stripped executable on PowerPC of only ~150K, and Intel 110K. However, unlike other small VMs (e.g. KVM) it is designed to support the full specification, and includes support for object finalisation, Soft/Weak/Phantom References, the Java Native Interface (JNI) and the Reflection API.

 [ 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 #3 on: February 07, 2006, 11:48:12 pm »
you're my hero. i'll try it out as soon as I get home. lemme throw this OQO in the corner and get my Zaurus back
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

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Java Environment
« Reply #4 on: February 08, 2006, 04:53:43 am »
Hello,

I have never used java before, but there are a few java apps I'd like to try.

Is it possible to run a .jar file and what is the syntax to do this.

When I try
# jamvm -jar Jabp.jar
I get :
Cannot create system class loader
......

I did :
# export JAVA_HOME=/usr/java/jamvm
# export PATH=$PATH:$JAVA_HOME/bin

I suppose there's more to be done ?

Are there some hardcore-java-users around ?

Have fun,
Chero.
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

wjping119

  • Newbie
  • *
  • Posts: 47
    • View Profile
Java Environment
« Reply #5 on: February 08, 2006, 06:18:51 am »
I have the same problems,but i did

# export JAVA_HOME=/usr/java/jamvm
# export PATH=/usr/java/jamvm/bin
# export CLASS_PATH=/usr/java/classpath

#/usr/java/jamvm/bin/jamvm -jar jlpt.jar
Cannot create system class loader
Exception occured while printing exception (java/lang/NoClassDefFoundError)...
Original exception was java/lang/UnsatisfiedLinkError
#

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Java Environment
« Reply #6 on: February 08, 2006, 06:26:20 am »
seems like you forgot to package the libraries. there are only .a and .la in the classpath lib directory, no .so  
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

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Java Environment
« Reply #7 on: February 08, 2006, 09:04:42 am »
Sorry, you're right. I will update the classpath package shortly
[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 #8 on: February 08, 2006, 09:14:39 am »
Classpath package is fixed and updated. Please download from first and second post. I use following exports:

Code: [Select]
# export PATH=$PATH:/usr/java/jamvm/bin
# export CLASSPATH=/usr/java/jamvm/share/jamvm/classes.zip:/usr/java/classpath/share/classpath/glibj.zip

Good luck!
[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]

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Java Environment
« Reply #9 on: February 09, 2006, 03:00:25 am »
mirrored:
http://mail.pdaxrom.org/contrib/cortez/

(I've recreated the classpath package there)
SLC-860 cacko / senao wifi

law

  • Newbie
  • *
  • Posts: 21
    • View Profile
Java Environment
« Reply #10 on: February 09, 2006, 04:33:07 pm »
hi,

has anyone tested jedit with jamvm and classpath 0.20?

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Java Environment
« Reply #11 on: February 10, 2006, 04:51:37 am »
Quote
hi,

has anyone tested jedit with jamvm and classpath 0.20?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=114312\"][{POST_SNAPBACK}][/a][/div]

I had jedit 4.2 working on classpath 0.19 and jamvm 1.4.0
This new version is causing some ClassCastExceptions. I might need to recompile jedit and see whether that fixes it.
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

law

  • Newbie
  • *
  • Posts: 21
    • View Profile
Java Environment
« Reply #12 on: February 10, 2006, 05:04:22 am »
Quote
I had jedit 4.2 working on classpath 0.19 and jamvm 1.4.0
This new version is causing some ClassCastExceptions. I might need to recompile jedit and see whether that fixes it.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=114369\"][{POST_SNAPBACK}][/a][/div]

i get an Killed error if i try to start jedit. perhabs you could post jedit if you have recompiled it.

thanks

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Java Environment
« Reply #13 on: February 10, 2006, 07:44:20 am »
The GNU Classpath release notes mentions:

"This release depends on gtk+ 2.4 for AWT support. But gtk+ 2.6 or
higher is recommended. Included, but not activated by default in this
release is a Graphics2D implementation based on the Cairo Graphics
framework (http://www.cairographics.org). Enabling this makes programs
like JFreeChart and JEdit start up on GNU Classpath based runtimes."


I guess we need a rebuild  
[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 #14 on: February 13, 2006, 04:29:34 pm »
I rebuild GNU classpath with Java2D/Cairo enabled. I also compiled jEdit version 4.3pre3 to see if it runs with current versions of JamVM and GNU Classpath.
jEdit can be run as follows:

Code: [Select]
jamvm -Dgnu.java.awt.peer.gtk.Graphics=Graphics2D -jar jEdit.jarWell, the good news is that jEdit indeed starts, but is't like Mark Wielaard, one of the Classpath developers said a while ago:

Quote
I always make sure jedit at least starts up when we are doing a new
release. And with each release it does become more and more usable. You
can now actually open a document, edit a bit, search and replace, etc.
But there are certainly still a lot of drawing/refresh bugs. Also the
embedded beanshell used to not work properly, but this might now be
fixed.
It's a nice to see such a demanding Swing application almost works.
[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]