Kaffe and AWT?

Harald Hanche-Olsen hanche at math.ntnu.no
Fri May 29 13:32:39 PDT 1998


I just got and installed kaffe 0.10.0 (on FreeBSD 2.2.5-STABLE).

Does Kaffe support the new JDK 1.1 or not?

I checked the FAQ <URL:http://www.kaffe.org/faq.html> which says

  From version 0.9.x, Kaffe supports JDK 1.1.  Before this version,
  Kaffe supports JDK 1.0.2.

Without this reassurance, I probably would not have bothered.

However, trying to run a simple applet, it failed -- se below.

So I checked the mailing list archives, where some messages apparently
indicate that AWT is not supported, or perhaps not completely.  Is it
possible to claim support for JDK 1.1 without AWT support, I wonder?

Anyway, here is the result of running the applet.

; appletviewer bar.html 
[no appletviewer.properties file found!]
security properties not found. using defaults.
MimeTable.load: file = /store/share/kaffe/lib/content-types.properties, java.io.FileNotFoundException: /store/share/kaffe/lib/content-types.properties
java.io.FileNotFoundException: /store/share/kaffe/lib/content-types.properties
        at java/lang/Throwable.<init>(line unknown, pc 0x1ff21b)
        at java/lang/Exception.<init>(line unknown, pc 0x1ff18d)
        at java/io/IOException.<init>(line unknown, pc 0x24de35)
        at java/io/FileNotFoundException.<init>(line unknown, pc 0x25a27d)
        at java/io/FileInputStream.<init>(line unknown, pc 0x202ee0)
        at java/io/FileInputStream.<init>(line unknown, pc 0x24dd69)
        at sun/net/www/MimeTable.load(217)
        at sun/net/www/MimeTable.<init>(48)
        at sun/net/www/MimeTable.getDefaultTable(57)
        at sun/net/www/protocol/file/FileURLConnection.connect(60)
        at sun/net/www/protocol/file/FileURLConnection.getInputStream(170)
        at sun/applet/AppletViewer.parse(919)
        at sun/applet/AppletViewer.parse(904)
        at sun/applet/AppletViewer.main(1081)
java.lang.ArrayIndexOutOfBoundsException
        at java/lang/ThreadGroup.add(line unknown, pc 0x3bf219)
        at java/lang/ThreadGroup.<init>(line unknown, pc 0x3cd14c)
        at sun/applet/AppletThreadGroup.<init>(59)
        at sun/applet/AppletThreadGroup.<init>(41)
        at sun/applet/AppletClassLoader.getThreadGroup(624)
        at sun/applet/AppletPanel.init(156)
        at sun/applet/AppletViewer.<init>(199)
        at sun/applet/StdAppletViewerFactory.createAppletViewer(87)
        at sun/applet/AppletViewer.parse(938)
        at sun/applet/AppletViewer.parse(904)
        at sun/applet/AppletViewer.main(1081)

Any suggestions welcome.

I should add that running non-graphical programs seems to work OK.

- Harald Hanche-Olsen
  Dept of Mathematical Sciences
  The Norwegian University of Science and Technology (NTNU)
  N-7034 Trondheim, NORWAY
  Email: <hanche at math.ntnu.no>
  Phone: +47-7359-3525 (work)
         +47-7359-3524 (fax)



More information about the kaffe mailing list