[Re: [Re: Errors encountered in compiling Java Tutorial example]]

me me2fast at usa.net
Wed Nov 3 22:44:39 PST 1999


"Peter C. Mehlitz" <peter at transvirtual.com> 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     ftp        140032 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     ftp        112735 Nov  3 13:54 mac.jar
-rw-r--r--   1 root     root         3100 Oct 28 01:09 microsoft.jar
-rw-r--r--   1 root     ftp        173690 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     root        81376 Oct 28 01:09 rmi.jar
-rw-r--r--   1 root     root        11983 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     root        17976 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.<init>(Throwable.java:38)
	at java.lang.Exception.<init>(Exception.java:24)
	at java.io.IOException.<init>(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,

me2fast at usa.net

> -- 
>   Peter C. Mehlitz                          Tel:      +1 510 704 1527
>   Transvirtual Technologies, Inc.,          Fax:      +1 510 704 1893
>   Berkeley, CA, USA.                        Email:   
peter at transvirtual.com


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1


More information about the kaffe mailing list