From: Julian D. <do...@us...> - 2002-05-28 15:42:10
|
John, In answer to your question, it would be very nice for you to make the jazzlib .jar file you suggested, and, yes, it should include the java.util.jar.* classes. We have dropped our own (very partial) zip implementation, and now use jazzlib by default. The error message when using `-cp .' seems to be a bug, and most likely one I introduced. I shall investigate. -- Julian John Leuner <je...@pi...> Sent by: To: jik...@ww... jik...@ww...uthbury. cc: je...@pi... usf.ibm.com Subject: [Jikesrvm-core] Building JRVM from CVS (jazzlib problems) 05/26/02 07:40 AM Please respond to jikesrvm-core I'm trying to build JRVM from CVS and I got the following error: jbuild.expand: (templates cleaned) jbuild.copy: (sources cleaned) jbuild.compile: (classes cleaned) jbuild.linkImage: (primordials cleaned) (bootimage cleaned) jbuild.linkBooter: (booter cleaned) jbuild.expand: (classloader templates expanded) (baseline templates expanded) make[1]: Entering directory `/mnt/dev/jikesground/rvm/src/tools/preprocessor' /usr/bin/g++ -g preprocessModifiedFiles.C -o /mnt/dev/jikesground/build1/RVM.scratch/preprocessModifiedFiles make[1]: Leaving directory `/mnt/dev/jikesground/rvm/src/tools/preprocessor' (rvmrt.jar copied) jbuild.compile: (classes compiled) (jksvm.jar built) jbuild.linkImage: (bootimage cleaned) (primordials updated) (built workaround zip) Exception in thread "main" java.lang.Error: BootImageWriter: unable to create objects: VM_ResolutionException: java.lang.NoClassDefFoundError: java.util.zip.ZipFile$PartialInputStream at BootImageWriterMessages.fail(BootImageWriterMessages.java:98) at BootImageWriter2.main(BootImageWriter2.java:387) make: *** [/mnt/dev/jikesground/build1/RVM.image] Error 1 I then made up a jazzlib .jar file and added this line i686-pc-linux-gnu: export JAZZLIBJAR=/mnt/dev/jikesground/jazzlib/jazzlib.jar Then I got this error: jbuild.expand: (templates cleaned) jbuild.copy: (sources cleaned) jbuild.compile: (classes cleaned) jbuild.linkImage: (primordials cleaned) (bootimage cleaned) jbuild.linkBooter: (booter cleaned) jbuild.expand: (classloader templates expanded) (baseline templates expanded) make[1]: Entering directory `/mnt/dev/jikesground/rvm/src/tools/preprocessor' /usr/bin/g++ -g preprocessModifiedFiles.C -o /mnt/dev/jikesground/build1/RVM.scratch/preprocessModifiedFiles make[1]: Leaving directory `/mnt/dev/jikesground/rvm/src/tools/preprocessor' (rvmrt.jar copied) jbuild.compile: (classes compiled) (jksvm.jar built) jbuild.linkImage: (bootimage cleaned) (primordials updated) (built workaround zip) Exception in thread "main" java.lang.Error: BootImageWriter: unable to create objects: VM_ResolutionException: java.lang.NoClassDefFoundError: java.util.jar.JarFile$JarEnumeration at BootImageWriterMessages.fail(BootImageWriterMessages.java:98) at BootImageWriter2.main(BootImageWriter2.java:387) make: *** [/mnt/dev/jikesground/build1/RVM.image] Error 1 I rebuilt the jazzlib jar file to include the GNU Classpath java/util/jar classes. Then the image built successfully jbuild.expand: (templates cleaned) jbuild.copy: (sources cleaned) jbuild.compile: (classes cleaned) jbuild.linkImage: (primordials cleaned) (bootimage cleaned) jbuild.linkBooter: (booter cleaned) jbuild.expand: (classloader templates expanded) (baseline templates expanded) make[1]: Entering directory `/mnt/dev/jikesground/rvm/src/tools/preprocessor' /usr/bin/g++ -g preprocessModifiedFiles.C -o /mnt/dev/jikesground/build1/RVM.scratch/preprocessModifiedFiles make[1]: Leaving directory `/mnt/dev/jikesground/rvm/src/tools/preprocessor' (rvmrt.jar copied) jbuild.compile: (classes compiled) (jksvm.jar built) jbuild.linkImage: (bootimage cleaned) (primordials updated) (built workaround zip) BootImageWriter: Warning: Suspicious VM_Address value of 1180 written for field VM_Processor.vpStatusAddress LVM_Address; (bootimage linked) jbuild.linkBooter: (booter cleaned) (booter linked) However running rvm resulted in some kind of recursion and failure, the errors seemed to appear when reading the Manifest of the jar file. I rebuilt the jar file using the IBM dk's jar command (previously I used fastjar) and this time I could run rvm (but I had to set the directory with pwd): bapli% rvm -cp $(pwd) trivial bapli% rvm -cp . trivial Cannot find repository for /mnt/dev/jikesground/build1/trivial.class java.lang.ClassNotFoundException: trivial What I want to know is: Would it be useful if I created a .jar file as part of the jazzlib release files (so that the version used by JRVM is the same as the one on the jazzlib page)? Should I include the java.util.jar classes in such a .jar file? Thanks John Leuner > The 2.0.4 release will contain a large number of significant changes to the > Jikes RVM code base & supported functionality. As a result there are a > number of TODO items, especially in the userguide and other documentation. > I've created a top level TODO file and a TODO file for the userguide in the > top level directory and in doc/userguide. Please take a look, add items > I've forgotten, and sign up to do things! > > --dave > > > _______________________________________________ > Jikesrvm-core mailing list > Jik...@ww... > http://www-124.ibm.com/developerworks/oss/mailman/listinfo/jikesrvm-core _______________________________________________ Jikesrvm-core mailing list Jik...@ww... http://www-124.ibm.com/developerworks/oss/mailman/listinfo/jikesrvm-core |