Hello all,
I am new to
Java. I wrote a very simple
applet. It works fine with the Eclipse browser. When I tried to load it on to web browser, classDefNotFound exception arises.
Here is my code for the applet:
MyApplet.java
Here is my html file:
DrawOval.html
My Project hierarchy is like this.
FirstApplet/src/com/example/applet/DrawOval.html .
My class file goes into: FirstApplet/bin/com/example/applet/MyApplet.class
DrawOval.html is also in the same directory after I build my project.
I tried using relative path in the CODEBASE to the applet class. It didnt work either. Please help me find the reason.