Subject: freezing & java.lang.NullPointerException, was java.lang.ClassNotFoundException

Alicia da Conceicao alicia at cyberstation.ca
Tue Jul 28 20:28:08 PDT 1998


Godmar Back wrote:
> You shouldn't have to set CLASSPATH anymore, because the kaffe script will
> do that for you.  But if you do, make sure you include . (dot) or where
> ever your classes can be found.  This might be where your problem lies.

Giles Lean wrote:
> On NetBSD-1.3E/i386 I found I needed to add the above libraries to the
> LIBS line in kaffe-1.0.b1/kaffe/kaffe/Makefile.  After doing this and 
> relinking the output from 'ldd /usr/local/bin/Kaffe' looks like this:
> /usr/local/bin/Kaffe:
>         -lkaffevm.1 => /usr/local/lib/libkaffevm.so.1.00 (0x4001b000)
>         -lm.0 => /usr/lib/libm.so.0.1 (0x4005b000)
>         -lc.12 => /usr/lib/libc.so.12.26 (0x40074000)
>         -lX11.6 => /usr/X11R6/lib/libX11.so.6.1 (0x400e1000)
>         -ljpeg.62 => /usr/pkg/lib/libjpeg.so.62.0 (0x4016f000)
        
Thanks to both Godmar Back & Giles Lean, I recompiled kaffe with the explicit
library settings for both X11 & jpeg libraries, so now "ldd Kaffe" reports:

/opt/java/kaffe/bin/Kaffe:      
        -lkaffevm.1 => /opt/java/kaffe/lib/libkaffevm.so.1.00 (0x4001b000)
        -lm.0 => /usr/lib/libm.so.0.1 (0x4005b000)
        -lc.12 => /usr/lib/libc.so.12.20 (0x40074000)
        -lX11.6 => /opt/X11R6/lib/libX11.so.6.1 (0x400e1000)
        -ljpeg.6 => /opt/local/lib/libjpeg.so.6.1 (0x4016f000)

And I've set my $CLASSPATH environment variable to include: Klasses.jar,
pizza.jar, and ".".  After all this I was able to get more java
functionality, but still not enough to be usable.  :-(

"gmake test" passes all of the test, accepts the following which it reports:

        TestFloatDouble ... ignored

        GCTest ... error running
        Should have got:
        [9]:  Success
        But got instead:




        *** Failed
        gmake[1]: *** [test] Error 1

And when I try to run kaffe's appletviewer, it falls to run most of the JDK
1.02 demo applets, that run great with Netscape and Sun's JDK 1.02 & 1.15
appletviewers.  :-(  Usually I would get java.lang.NullPointerExceptions or
no error messages appear (but the applet would freeze).  To make matters
worse, the window size of kaffe's appletviewer would be smaller than the
applet size itself, and the objects drawn would be displaced and distored.
Below are the results from kaffe's appletviewer on Sun's JDK 1.02 demo
applets:

        ArcTest                 -freezes after drawing inital arc
        BarChart                -fails to completely draw chart
        BouncingHeads           -freezes before anything drawn
        CardTest                -fails to render boxes generated in middle
        Clock                   -java.lang.NullPointerException on
                                        ResourceBundle.getSpecificBundle
        DitherTest              -unable to render images
        Drawtest                -illegal instruction, fails to draw anything
        Fractal                 -freezes before anything drawn
        GraphLayout             -freezes after only one link drawn
        GraphicsTest            -freezes after rendering first images,
circles
                                        in wrong position and oval shaped
        ImageMap                -freezes before anything drawn
        JumpingBox              -freeze after drawing initial box
        MoleculeViewer          -java.lang.ArrayIndexOutOfBoundsException
        NervousText             -works (yippie!)
        ScrollingImages         -freezes before any images are drawn
        SimpleGraph             -works (yippie!)
        SortDemo                -java.lang.ClassNotFoundException
        TicTacToe               -freezes after drawing grid, no images
        TumblingDuke            -freezes before any images are drawn
        WireFrame               -java.lang.ArrayIndexOutOfBoundsException

Most noticable is the failure of kaffe's appletviewer when images are
concerned.  Can anyone else successfully run any of these applets with
kaffe?  I would still greatly appreciate any help anyone can offer to get
these applets to run with kaffe.

Thanks in advance, Alicia.


More information about the kaffe mailing list