OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Java Environment, Updated: JamVM and GNU Classpath
cortez
post May 28 2006, 09:42 AM
Post #1





Group: Members
Posts: 376
Joined: 18-March 04
From: The Netherlands
Member No.: 2,380



Latest JamVM version 1.4.3, see release notes here.

Attached File  jamvm_1.4.3_armv5tel.ipk ( 76.53K ) Number of downloads: 204
Go to the top of the page
 
+Quote Post
cortez
post May 28 2006, 09:54 AM
Post #2





Group: Members
Posts: 376
Joined: 18-March 04
From: The Netherlands
Member No.: 2,380



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 -

Attached File  classpath.tar.bz2aa.ipk ( 3.34MB ) Number of downloads: 185
Go to the top of the page
 
+Quote Post
cortez
post May 28 2006, 09:59 AM
Post #3





Group: Members
Posts: 376
Joined: 18-March 04
From: The Netherlands
Member No.: 2,380



Part 2 of GNU Classpath.
Recreate package as described in previous post.

Attached File  classpath.tar.bz2ab.ipk ( 3.34MB ) Number of downloads: 192
Go to the top of the page
 
+Quote Post
cortez
post May 28 2006, 10:04 AM
Post #4





Group: Members
Posts: 376
Joined: 18-March 04
From: The Netherlands
Member No.: 2,380



Part 3 of GNU Classpath.
Recreate package as described in previous post.

Attached File  classpath.tar.bz2ac.ipk ( 1.42MB ) Number of downloads: 190
Go to the top of the page
 
+Quote Post
Meanie
post May 30 2006, 02:09 AM
Post #5





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



woohoo new version smile.gif

i will try it when i get home in a few weeks time ...
Go to the top of the page
 
+Quote Post
darmou
post May 30 2006, 03:39 AM
Post #6





Group: Members
Posts: 62
Joined: 17-December 04
Member No.: 5,956



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.
Go to the top of the page
 
+Quote Post
cortez
post May 30 2006, 12:52 PM
Post #7





Group: Members
Posts: 376
Joined: 18-March 04
From: The Netherlands
Member No.: 2,380



It seems that JamVM expects Classpath to be in /usr/local/classpath
Try symlinking classpath, I'll look into this later.
Go to the top of the page
 
+Quote Post
darmou
post May 31 2006, 04:48 AM
Post #8





Group: Members
Posts: 62
Joined: 17-December 04
Member No.: 5,956



QUOTE(cortez @ May 30 2006, 08:52 PM)
It seems that JamVM expects Classpath to be in /usr/local/classpath
Try symlinking classpath, I'll look into this later.
*


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
Go to the top of the page
 
+Quote Post
Meanie
post Jun 3 2006, 01:23 AM
Post #9





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



QUOTE(darmou @ May 31 2006, 10:48 PM)
QUOTE(cortez @ May 30 2006, 08:52 PM)
It seems that JamVM expects Classpath to be in /usr/local/classpath
Try symlinking classpath, I'll look into this later.
*


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
*



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.
Go to the top of the page
 
+Quote Post
darmou
post Jun 5 2006, 01:41 AM
Post #10





Group: Members
Posts: 62
Joined: 17-December 04
Member No.: 5,956



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
Go to the top of the page
 
+Quote Post
Meanie
post Jun 8 2006, 05:31 AM
Post #11





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



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. sad.gif

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 sad.gif
Go to the top of the page
 
+Quote Post
Darth_Sith
post Jun 12 2006, 03:16 PM
Post #12





Group: Members
Posts: 128
Joined: 6-June 06
Member No.: 10,068



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...
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th December 2014 - 03:29 PM