[kaffe] kaffe -cp test.jar does not find my classes!
Arnaud Vandyck
avdyk at debian.org
Sun Oct 10 03:52:20 PDT 2004
Hi all,
I have some problems with actual kaffe in Debian. It's impossible find
classes in jar files!
I did try this morning to build kaffe from the sources, not from the
debian package (maybe it was a debian package problem). I did configure
like this:
$ ./configure --with-pic --with-static-vm --with-satic-lib \
--with-jikes --with-libffi --host=powerpc-linux \
--build=powerpc-linux \
--with-jni-library-path='/usr/lib/jni' \
--without-kaffe-qt-awt --without-kaffe-x-awt \
--prefix='/usr/local/kaffe'
$ make
# make install
I have a little java test class (I attach the source and the resulting
jar file).
I build the source to a build directory, than make a jar file.
$ /usr/local/kaffe/bin/kaffe -cp build/ test.Test
Hello!
$ /usr/local/kaffe/bin/kaffe -cp test.jar test.Test
kaffe-bin: gc-incremental.c:1036: gcMalloc: Assertion `gcFunctions[fidx].description != ((void *)0) && size != 0' failed.
I attach the result of the '-debug' argument.
Many thanks for an explanation, for your help,
--
Arnaud Vandyck
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Test.java
Type: text/x-java
Size: 121 bytes
Desc: not available
Url : http://pogo.kaffe.org/pipermail/kaffe/attachments/20041010/d5d1f31b/Test.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.jar
Type: application/x-java-archive
Size: 750 bytes
Desc: not available
Url : http://pogo.kaffe.org/pipermail/kaffe/attachments/20041010/d5d1f31b/test.bin
-------------- next part --------------
Loading java/lang/Object.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/Serializable.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Cloneable.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Class.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/String.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Comparable.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/CharSequence.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/System.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Void.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Boolean.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Byte.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Number.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Character.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Short.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Integer.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Long.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Float.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Double.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading kaffe/util/Ptr.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/ClassLoader.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading kaffe/lang/AppClassLoader.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/net/URLClassLoader.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/security/SecureClassLoader.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Throwable.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/VMThrowable.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/StackTraceElement.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Exception.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/ArrayIndexOutOfBoundsException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/IndexOutOfBoundsException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/RuntimeException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/NullPointerException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/ArithmeticException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/ClassNotFoundException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/NoClassDefFoundError.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/LinkageError.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Error.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/StackOverflowError.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/VirtualMachineError.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/IOException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/String$ICComp.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/Comparator.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Thread.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Runnable.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/VMThread.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/ThreadGroup.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/Vector.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/AbstractList.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/AbstractCollection.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/Collection.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/List.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/RandomAccess.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/IllegalArgumentException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/HashMap.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/AbstractMap.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/Map.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/StringBuffer.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/HashMap$HashEntry.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/AbstractMap$BasicMapEntry.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/Map$Entry.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/net/URL.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/StringTokenizer.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/Enumeration.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/File.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/net/URLStreamHandlerFactory.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/security/AccessControlContext.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/SecurityManager.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/Hashtable.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/Dictionary.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/HashSet.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/AbstractSet.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/Set.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/Hashtable$HashEntry.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/Properties.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/BufferedInputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/FilterInputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/InputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading kaffe/io/StdInputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/PrintStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/FilterOutputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/OutputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/BufferedOutputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading kaffe/io/StdOutputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading kaffe/io/StdErrorStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/FileInputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/FileDescriptor.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/FileOutputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading gnu/java/nio/channels/FileChannelImpl.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/nio/channels/FileChannel.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/nio/channels/spi/AbstractInterruptibleChannel.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/nio/channels/Channel.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/nio/channels/InterruptibleChannel.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/nio/channels/ByteChannel.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/nio/channels/ReadableByteChannel.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/nio/channels/WritableByteChannel.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/nio/channels/GatheringByteChannel.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/nio/channels/ScatteringByteChannel.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Runtime.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading kaffe/lang/ThreadStack.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading kaffe/lang/MemoryAdvice.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/RuntimePermission.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/security/BasicPermission.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/security/Permission.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/security/Guard.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading kaffe/lang/PrimordialClassLoader.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/FileNotFoundException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/UnsatisfiedLinkError.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/NativeLibrary.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/StringIndexOutOfBoundsException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/NoSuchElementException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/SecurityException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/PrintWriter.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/Writer.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/OutputStreamWriter.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/CharConversionException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading gnu/java/io/EncodingManager.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading gnu/java/io/encode/Encoder.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading gnu/java/io/encode/KaffeEncoder.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/UnsupportedEncodingException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading kaffe/io/CharToByteConverter.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading kaffe/io/CharToByteIconv.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/ClassCastException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/InstantiationException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/IllegalAccessException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading kaffe/io/ConverterAlias.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/ObjectInputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/ObjectInput.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/DataInput.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/ObjectStreamConstants.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/Locale.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading kaffe/io/CharToByteDefault.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/reflect/InvocationTargetException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/NoSuchMethodException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/reflect/Modifier.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/reflect/Constructor.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/reflect/AccessibleObject.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/reflect/Member.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/reflect/Method.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/ByteArrayOutputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/NumberFormatException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading kaffe/lang/AppClassLoader$JarSource.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading kaffe/lang/AppClassLoader$Source.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading kaffe/lang/AppClassLoader$DirSource.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/VMFile.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/jar/JarFile.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/zip/ZipFile.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/zip/ZipConstants.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading gnu/java/io/PlatformHelper.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/jar/Manifest.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/IllegalStateException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/zip/ZipEntry.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/ByteArrayInputStream.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/zip/ZipException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/jar/Attributes.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/BufferedReader.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/Reader.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/InputStreamReader.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading gnu/java/io/decode/Decoder.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading gnu/java/io/decode/KaffeDecoder.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading kaffe/io/ByteToCharConverter.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading kaffe/io/ByteToCharIconv.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/jar/Attributes$Name.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Math.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/jar/JarException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/IllegalThreadStateException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/OutOfMemoryError.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Package.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/security/CodeSource.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/security/Permissions.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/security/PermissionCollection.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/security/AllPermission.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/security/ProtectionDomain.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/Arrays.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/security/PermissionsHash.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/security/AllPermissionCollection.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/security/Principal.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/net/MalformedURLException.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading kaffe/lang/PackageHelper.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/security/cert/Certificate.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/jar/JarEntry.class(/usr/local/kaffe/jre/lib/rt.jar) [compressed]
kaffe-bin: gc-incremental.c:1036: gcMalloc: l'assertion ? gcFunctions[fidx].description != ((void *)0) && size != 0 ? a ?chou?.
More information about the kaffe
mailing list