Newbie question

From: Daniel Pope (daniel-po_at_shaw.ca)
Date: 02/21/04


Date: Sat, 21 Feb 2004 22:45:48 GMT

Dear All,

Five years ago I used Microsoft java 1.2 for about one year to build complex
graphical applets. And I was thinking (poor me) that I'll have no big
problems to use again Java (Sun realese this time). How wrong I was!
Though I installed on my Windows 98 both Net Beans IDE 3.51 and Java (TM)
Web Services Developer Pack 1.3 (couldn' install 1.4), I am not able to run
the following test applet locally on my computer (source is not mine - I
downloaded from the Internet to be sure that is something that works), that
I could compile easily with Net Beans UDE 3.5.1.(see the code below).
I got always the messages from below in my java console (look at the
bottom).
I am totally confused, because I do not know what to do: what software
package should I install in order to make it works and how to install the
default path to these classes.

Any hints would be greatly appreciated.
Thank you in advance!

Daniel Pope

PS. I'm using Internet Explorer 6

import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;

/** Draw circles centered where the user clicks. */

public class Circles extends Applet {
  public void init() {
    MouseListener circleListener =
      // An inner class.
      new MouseAdapter() {
        public void mouseClicked(MouseEvent event) {
          getGraphics().fillOval(event.getX()-25,
                                 event.getY()-25,
                                 50, 50);
        }
    };

    // Attach the class just defined to the Applet.
    addMouseListener(circleListener);
  }
}

What I get from the Java Console.
*****************************************
Error loading class: Circles
java.lang.NoClassDefFoundError
java.lang.ClassNotFoundException: Circles
 at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
 at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
 at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
 at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
 at com/ms/applet/AppletPanel.run (AppletPanel.java)
 at java/lang/Thread.run (Thread.java)
******************************************



Relevant Pages

  • Re: Microsoft VM
    ... Hawkide - My bad - I forgot that the applet I have is different from ... remember the exact tab - There should be a place where you can select ... Java and JavaScript are two different things. ... to go through that Install on Demand evertime I go to a site ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Applet problem with IE6 - how do you uninstall applets?
    ... and the bottom left of the browser reports "Applet signer notinited". ... boxes one after another to install the applet - so I am suspicious because ... I have checked and I don't have the Microsoft Java VM but I do have the Sun ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • [Full-Disclosure] Technical information about the vulnerabilities fixed by MS-02-52
    ... The patch doesn't fix all of the vulnerabilities we reported, ... Java support in the Internet Zone even after applying the patch gives the ... possibility for a malicious Java Applet to gain control over the system. ... Our original report and information regarding the remaining Java ...
    (Full-Disclosure)
  • Technical information about the vulnerabilities fixed by MS-02-52
    ... The patch doesn't fix all of the vulnerabilities we reported, ... Java support in the Internet Zone even after applying the patch gives the ... possibility for a malicious Java Applet to gain control over the system. ... Our original report and information regarding the remaining Java ...
    (NT-Bugtraq)
  • Technical information about the vulnerabilities fixed by MS-02-52
    ... The patch doesn't fix all of the vulnerabilities we reported, ... Java support in the Internet Zone even after applying the patch gives the ... possibility for a malicious Java Applet to gain control over the system. ... Our original report and information regarding the remaining Java ...
    (Bugtraq)