[Kaffe] An article that mentions Kaffe
Hi all. I thought folks on the Kaffe list might like to check out an article I co-authored. It is about using Tcl and Java together. And yes, it mentions Kaffe in on page 2. http://www.sunworld.com/sunworldonline/swol-11-1999/swol-11-jacl.html later Mo DeJong
Re: [Re: [Re: Errors encountered in compiling Java Tutorial example]]
On Wed, 03 Nov 1999, me wrote: > > Ok, even after doing that, and copying the JARs to /usr/local/share/kaffe: > > -rw-r--r-- 1 root root 885137 Oct 28 01:09 Klasses.jar > -rw-r--r-- 1 root ftp140032 Nov 3 13:54 beaninfo.jar > -rw-r--r-- 1 root root 8828109 May 10 06:07 classes.zip > -rw-r--r-- 1 root root 8081 Oct 28 01:09 comm.jar > -rw-r--r-- 1 root root 557705 Oct 28 01:09 kjc.jar > -rw-r--r-- 1 root ftp112735 Nov 3 13:54 mac.jar > -rw-r--r-- 1 root root 3100 Oct 28 01:09 microsoft.jar > -rw-r--r-- 1 root ftp173690 Nov 3 13:54 motif.jar > -rw-r--r-- 1 root ftp 42237 Nov 3 13:54 multi.jar > -rw-r--r-- 1 root root 5486 Oct 28 01:09 pjava.jar > -rw-r--r-- 1 root root81376 Oct 28 01:09 rmi.jar > -rw-r--r-- 1 root root11983 Oct 28 01:09 servlet.jar > -rw-r--r-- 1 root ftp 1897143 Nov 3 13:54 swing.jar > -rw-r--r-- 1 root ftp 2420388 Nov 3 13:54 swingall.jar > -rw-r--r-- 1 root root17976 Oct 28 01:09 tools.jar > -rw-r--r-- 1 root ftp 94143 Nov 3 13:54 windows.jar > > I'm still encountering the same error: > > javac ApptoAppl.java > ApptoAppl.java:11: Can''t find class "JLabel" §8 > > Moreover, I've encountered similar errors with the examples that are available > in the Swing 1.1.1 package: > > javac SwingApplet.java > SwingApplet.java:40: Can''t find class "JApplet" §8 > > > What's going on here? So far I've gained 0 productivity from Kaffe, inspite > of being due diligent with the documentation, email archives, etc. > > What am I missing ??? hmmphmumblegrumblehnagh! perhaps you should re-read the documentation wrt the javac command line options. pay close attention to the '-classpath' argument. you need 'swingall.jar' to be in your classpath if you are to compile swing code. what the heck were using before kaffe? TTFN. Kit
Re: [Re: [Re: Errors encountered in compiling Java Tutorial example]]
On Wed, 3 Nov 1999, Archie Cobbs wrote: > > me writes: > > jar tvf /usr/local/share/kaffe/Klasses.jar > > > > 1457 Thu Jan 01 0-8:00:00 PST 1970 java/lang/Object.class > > java.io.IOException: LOC header signature bad: 535b547d > > at java.lang.Throwable.(Throwable.java:38) > > at java.lang.Exception.(Exception.java:24) > > at java.io.IOException.(IOException.java:25) > > at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:55) > > at kaffe.tools.jar.Jar.listFilesInJar(Jar.java:601) > > at kaffe.tools.jar.Jar.processJar(Jar.java:402) > > at kaffe.tools.jar.Jar.start(Jar.java:60) > > at kaffe.tools.jar.Jar.main(Jar.java:39) Actually this is a bug in the java.util.zip.ZipInputStream class. I have some test cases that reproduce this error but I have not had time to track the bug down. If ZipInputStream is fixed the jar util will work. Mo DeJong > Kaffe's "jar" utility is broken (though less broken than it used to be). > It can create JAR files OK but seems to have trouble reading them. > > -Archie > > ___ > Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com >
Re: [Re: [Re: Errors encountered in compiling Java Tutorial example]]
me writes: > jar tvf /usr/local/share/kaffe/Klasses.jar > > 1457 Thu Jan 01 0-8:00:00 PST 1970 java/lang/Object.class > java.io.IOException: LOC header signature bad: 535b547d > at java.lang.Throwable.(Throwable.java:38) > at java.lang.Exception.(Exception.java:24) > at java.io.IOException.(IOException.java:25) > at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:55) > at kaffe.tools.jar.Jar.listFilesInJar(Jar.java:601) > at kaffe.tools.jar.Jar.processJar(Jar.java:402) > at kaffe.tools.jar.Jar.start(Jar.java:60) > at kaffe.tools.jar.Jar.main(Jar.java:39) Kaffe's "jar" utility is broken (though less broken than it used to be). It can create JAR files OK but seems to have trouble reading them. -Archie ___ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com
Re: [Re: [Re: Errors encountered in compiling Java Tutorial example]]
"Peter C. Mehlitz" <[EMAIL PROTECTED]> wrote: > > > Still no luck! I've downloaded the following classes.zip: > > 11550429 May 11 12:26 jdk_1.1.7-v3-glibc-x86.tar.gz > > There's no swing in jdk 1.1.x, you should get the swing-1.1.1fcs package from > JavaSofts website. > Ok, even after doing that, and copying the JARs to /usr/local/share/kaffe: -rw-r--r-- 1 root root 885137 Oct 28 01:09 Klasses.jar -rw-r--r-- 1 root ftp140032 Nov 3 13:54 beaninfo.jar -rw-r--r-- 1 root root 8828109 May 10 06:07 classes.zip -rw-r--r-- 1 root root 8081 Oct 28 01:09 comm.jar -rw-r--r-- 1 root root 557705 Oct 28 01:09 kjc.jar -rw-r--r-- 1 root ftp112735 Nov 3 13:54 mac.jar -rw-r--r-- 1 root root 3100 Oct 28 01:09 microsoft.jar -rw-r--r-- 1 root ftp173690 Nov 3 13:54 motif.jar -rw-r--r-- 1 root ftp 42237 Nov 3 13:54 multi.jar -rw-r--r-- 1 root root 5486 Oct 28 01:09 pjava.jar -rw-r--r-- 1 root root81376 Oct 28 01:09 rmi.jar -rw-r--r-- 1 root root11983 Oct 28 01:09 servlet.jar -rw-r--r-- 1 root ftp 1897143 Nov 3 13:54 swing.jar -rw-r--r-- 1 root ftp 2420388 Nov 3 13:54 swingall.jar -rw-r--r-- 1 root root17976 Oct 28 01:09 tools.jar -rw-r--r-- 1 root ftp 94143 Nov 3 13:54 windows.jar I'm still encountering the same error: javac ApptoAppl.java ApptoAppl.java:11: Can''t find class "JLabel" §8 Moreover, I've encountered similar errors with the examples that are available in the Swing 1.1.1 package: javac SwingApplet.java SwingApplet.java:40: Can''t find class "JApplet" §8 Furthermore, when I try to list the contents of a .JAR file, I encounter other errors: jar tvf /usr/local/share/kaffe/Klasses.jar 1457 Thu Jan 01 0-8:00:00 PST 1970 java/lang/Object.class java.io.IOException: LOC header signature bad: 535b547d at java.lang.Throwable.(Throwable.java:38) at java.lang.Exception.(Exception.java:24) at java.io.IOException.(IOException.java:25) at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:55) at kaffe.tools.jar.Jar.listFilesInJar(Jar.java:601) at kaffe.tools.jar.Jar.processJar(Jar.java:402) at kaffe.tools.jar.Jar.start(Jar.java:60) at kaffe.tools.jar.Jar.main(Jar.java:39) What's going on here? So far I've gained 0 productivity from Kaffe, inspite of being due diligent with the documentation, email archives, etc. What am I missing ??? Thanks, [EMAIL PROTECTED] > -- > Peter C. Mehlitz Tel: +1 510 704 1527 > Transvirtual Technologies, Inc., Fax: +1 510 704 1893 > Berkeley, CA, USA.Email: [EMAIL PROTECTED] Get free email and a permanent address at http://www.netaddress.com/?N=1