Click to See Complete Forum and Search --> : Applet does not run in Netscape.


Dias L.
October 8th, 1999, 09:50 AM
I have written an applet which displays a slotmachine on the screen where the user can click and spin the wheels. It has two classes wheel and slotmachine(main).
This applet runs properly in Internet Explorer, but it does not run in Netscape. The Java console in Netscape navigator gives the following error.

# Applet exception: class slotmachine not found
java.lang.ClassNotFoundException: java/awt/event/MouseListener

unicman
October 10th, 1999, 12:36 PM
U didn't specify the java version which u r using.

If u compile ur classes in JDK1.1.5, it won't work in Netscape 4.04 as it supports upto JDK1.1.2 while IE4 supports JDK1.1.5.

That may be a reason why netscape is not finding the class applet needs.

- UnicMan
http://members.tripod.com/unicman

Dias L.
October 10th, 1999, 10:36 PM
Thanks for the reply.
I use JDK 1.1.1 and Visual J++ 6.0 to develop my applets.Please tell me the advantages and disadvantages of using them.

unicman
October 11th, 1999, 11:02 PM
Frankly I don't trust that MS-J++ creates platform independant code. I had heard some issues where using MSJ++, the classes were unable to run on all OSs.

Otherwise I don't think there should be any problem as u r using jdk1.1.1. Why don't u try to compile ur classes using java's jdk1.1.1 i.e.'javac' etc?

- UnicMan
http://members.tripod.com/unicman

cspatnaik
October 12th, 1999, 01:22 AM
Netscape ver 4.5 onwards might support awt events.
if u r using older versions make applet invisible( height=0 width=0)
call the applet events when event on browser if fired.
any further info. contact cspatnaik@hotmail.com

Software Engineer
Internet Technology,Panini Logix Pvt Ltd