From: Heilpern, M. <mar...@au...> - 2005-10-20 19:14:03
|
I received the email below in personal email, from someone not able to respond to the list. Thanks, Rob. Specifically, how I got jamvm to work from a fresh build: *) Edit Makefile, to include TARGET+=3Djamvm classpath 1) From the gumstix-buildroot directory, command: make 2) Wait (and wait and wait) for completion 3) command: cd build_arm_npfpu/jamvm-1.3.1 4) command: ./configure --target=3Darm-linux --host=3Darm-linux --build=3Di386-pc-linux-gnu --prefix=3D/usr --exec-prefix=3D/usr --bindir=3D/usr/bin --sbindir=3D/usr/sbin --libexecdir=3D/usr/lib --sysconfdir=3D/etc --datadir=3D/usr/share --localstatedir=3D/var --mandir=3D/usr/man --infodir=3D/usr/info = --with-classpath-install-dir=3D/usr 5) command: make clean 6) command: cd ../.. 7) command: make Then using the resulting root FS image, I was able to "jamvm hello" and have my simple application run. ---------- Hi Mark, I see you're having problems getting JamVM to work (from gumstix general). Firstly, to specify the classes used for the boot class loader you have to use -Xbootclasspath. The system class loader (which uses the 'normal' classpath) is written in Java. You also need to add JamVM's specific classes (which override some in Classpath). Assuming you installed JamVM in /foo, this will be: jamvm -Xbootclasspath:/foo/share/jamvm/classes.zip:/usr/share/classpath/glibj. zip hello (you don't add the .class on the end). However, it's easier to specify the location of Classpath when you configure JamVM. By default, the build assumes Classpath is installed in /usr/local/classpath (Classpath's default location). To override this you need to use the with-classpath-install-dir option to configure, i.e.: ./configure --with-classpath-install-dir=3D/usr Hope this helps, Rob. P.S. Could you forward this to the list? I'm not subscribed. Thanks.=20 -----Original Message----- From: gum...@li... [mailto:gum...@li...] On Behalf Of Heilpern, Mark Sent: Wednesday, October 19, 2005 4:21 PM To: gum...@li... Subject: [SPAM- (Header)] - [Gumstix-users] Jamvm classpath setup - Email found in subject I've made a build with jamvm and classpath included, and am trying to test basic java functionality with a hello world application. I'm getting an error consistantly: Exception occurred while VM initialising. Java/lang/NoClassDefFoundError: java/lang/Thread My attempts have included commands such as: jamvm -verbose -classpath /usr/share/classpath/glibj.zip hello.class I've checked that zip, and java/lang/Thread.class is in it. The -verbose flag isn't revealing any additional details. Any thoughts? _______________________________________________________ NOTE: The information in this message is intended for the personal and = confidential use of the designated recipient(s) named above. To the extent the = recipient(s) is/are bound by a non-disclosure agreement, or other agreement that contains an = obligation of confidentiality, with AuthenTec, then this message and/or any = attachments shall be considered confidential information and subject to the confidentiality = terms of that agreement. If the reader of this message is not the intended recipient = named above, you are notified that you have received this document in error, and any = review, dissemination, distribution or copying of this message is strictly prohibited. If you = have received this document in error, please delete the original message and notify the = sender immediately. Thank you. AuthenTec, Inc. http://www.authentec.com |