.jpg and .gif
alice dubois
alice.dubois at lemel.fr
Mon Dec 21 07:38:14 PST 1998
Hello,
WidgetsDemo uses tvt.jpg. When I run WidgetsDemo.sh the image doesn't
appear
and an exception is caught:
java.lang.NullPointerException
at java/awt/ImageFileProducer.startProduction(27)
at java/awt/Image.loadImage(189)
at java/awt/Image.getHeight(145)
at WidgetsDemo.paint(381)
at java/awt/Window.update(305)
at java/awt/PaintEvent.dispatch(51)
at java/awt/EventDispatchThread.show(127)
at java/awt/WMEvent.dispatch(52)
at java/awt/EventDispatchThread.run(38)
If I put a .gif instead of the .jpg, everything is correct.
Why ?
To make it working , here is what I have done:
In configure:
...
# Accept the important Cygnus configure options, so we can diagnose
typos.
case "$ac_option" in
--jpeg=*) #added
jpeg="$ac_optarg" ;; #added
-bindir | --bindir | --bindi | --bind | --bin | --bi)
ac_prev=bindir ;;
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bindir="$ac_optarg" ;;
...
if test "$have_x" = "yes" ; then
make_output="$make_output \
libraries/clib/awt/Makefile \
"
JAVA_LIBRARIES="$JAVA_LIBRARIES \
./../libraries/clib/awt/libawt$LIBEXT \
$jpeg/libjpeg.a \ #added
"
fi
if test "$dynamic_libraries" = "yes" ; then
NOSHAREDLIBS="-L../kaffevm -lkaffevm $VM_LIBRARIES $STD_LIBRARIES"
KAFFE_LIBDEP=""
else ....
Like that I can say where is my libjpeg.a when I run configure with the
option --jpeg=DIR.
Is it correct ?
I don't understand where libgif.a is found. It must be found somewhere,
mustn't it ?
Thanks,
Alice
More information about the kaffe
mailing list