CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 1999
    Location
    Mumbai, Maharashtra, India
    Posts
    6

    Applet does not run in Netscape.

    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


  2. #2
    Join Date
    May 1999
    Location
    Pune, MH, India.
    Posts
    453

    Re: Applet does not run in Netscape.

    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

  3. #3
    Join Date
    Oct 1999
    Location
    Mumbai, Maharashtra, India
    Posts
    6

    Re: Applet does not run in Netscape.

    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.


  4. #4
    Join Date
    May 1999
    Location
    Pune, MH, India.
    Posts
    453

    Re: Applet does not run in Netscape.

    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

  5. #5
    Join Date
    Oct 1999
    Posts
    8

    Re: Applet does not run in Netscape.

    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 [email protected]

    Software Engineer
    Internet Technology,Panini Logix Pvt Ltd

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured