Re: [Jamvm-general] Problems with Jamvm+AT91RM9200
Brought to you by:
rlougher
From: Robert L. <rob...@gm...> - 2009-04-17 00:12:42
|
Hi, First of all, sorry for the delay in approving this. The list is receiving increasing amounts of spam, and real posts are becoming hard to spot. It's better to join the list so I don't have to moderate it... 2009/3/26 Anndy <lz...@gm...>: > > I want to use jamvm on AT91RM9200 board. > > Firstly, I do in suse 9.3 machine > > 1、gnu classpath: > > classpath-0.92#CC=/usr/local/arm/2.95.3/bin/arm-linux-gcc ./configure > --host=arm-linux --prefix=/mnt/nfs/classpath --disable-gtk-peer > --disable-gconf-peer --disable-plugin --with-jikes --enable-jni > classpath-0.92#make > classpath-0.92#make install > > 2、jamvm > > jamvm-1.4.3#CC=/usr/local/arm/2.95.3/bin/arm-linux-gcc ./configure > --host=arm-linux --prefix=/mnt/nfs/jamvm > --with-classpath-install-dir=/mnt/nfs/classpath > jamvm-1.4.3#make > jamvm-1.4.3#make install > > 3、copy /mnt/nfs/classpath and /mnt/nfs/jamvm to /arm_linux_root > > > Secondly, I do in AT91RM9200 board > > 1、mount -n -o nolock -t nfs 192.168.0.121:/arm_linux_root /mnt/nfs > > 2、export > BOOTCLASSPATH=/mnt/nfs/jamvm/share/jamvm/classes.zip:/mnt/nfs/classpath/share/classpath/glibj.zip > > export LD_LIBRARY_PATH=/mnt/nfs/classpath/lib/classpath > > export PATH=/mnt/nfs/jamvm/bin:$PATH > > 3、[root@AT91RM9200DK nfs]$jamvm HelloWorld > bootclasspath is empty! > > HelloWorld.class is in /mnt/nfs dir. > > 4、I found in /mnt/nfs/jamvm/share/jamvm, there was no classes.zip. It was a > file dir classes. So I change the BOOTCLASSPATH as: > export > BOOTCLASSPATH=/mnt/nfs/jamvm/share/jamvm/classes:/mnt/nfs/classpath/share/classpath/glibj.zip > > when i run [root@AT91RM9200DK nfs]$jamvm HelloWorld again, it printed: > > Exception occurred while VM initialising. > java/lang/NoClassDefFoundError: java/lang/Thread > > > How can I solve these problems? Maybe someone give me some advices! Thanks a > lot! It looks like JamVM has been built without jar/zip support within the bootstrap class-loader. This is normally because the zlib headers or library could not be found during configure. The clue is in the fact that JamVM's classes.zip doesn't exist but a classes directory does (if the boot classloader doesn't support jar/zip, the classes are not put in a zip). GNU Classpath is installed separately, so its classes are still in glibj.zip. You have two choices: 1) Install zlib headers and library 2) Unpack glibj.zip, and add the containing directory to the bootclasspath, i.e. cd /mnt/nfs/classpath/share/classpath unzip glibj.zip BOOTCLASSPATH=/mnt/nfs/jamvm/share/jamvm/classes:/mnt/nfs/classpath/share/classpath Rob. P.S. JamVM 1.4.3 is very old. Later versions of JamVM abort if zlib can't be found, forcing the user to explicitly disable zip support (or install the required stuff). > -- > View this message in context: http://www.nabble.com/Problems-with-Jamvm%2BAT91RM9200-tp22718432p22718432.html > Sent from the JamVM mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Jamvm-general mailing list > Jam...@li... > https://lists.sourceforge.net/lists/listinfo/jamvm-general > |