D
Daniel Pope
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)
******************************************
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)
******************************************