Help - Search - Members - Calendar
Full Version: Java Environment
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
cortez
Latest JamVM version 1.4.3, see release notes here.

Click to view attachment
cortez
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 -

Click to view attachment
cortez
Part 2 of GNU Classpath.
Recreate package as described in previous post.

Click to view attachment
cortez
Part 3 of GNU Classpath.
Recreate package as described in previous post.

Click to view attachment
Meanie
woohoo new version smile.gif

i will try it when i get home in a few weeks time ...
darmou
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
It seems that JamVM expects Classpath to be in /usr/local/classpath
Try symlinking classpath, I'll look into this later.
darmou
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
Meanie
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.
darmou
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
Meanie
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
Darth_Sith
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...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.