I simply tried running a simple Java applet using extends Applet
and extends JApplet
too as suggested when I searched for it on Google.
I am still getting the error:
no main class found
How can I resolve this?
I simply tried running a simple Java applet using extends Applet
and extends JApplet
too as suggested when I searched for it on Google.
I am still getting the error:
no main class found
How can I resolve this?
Applets don't have a main method, you need to load applets by appletviewer or in a browser
for example:
<APPLET CODEBASE="../classes/" ARCHIVE="your_jar.jar"
CODE=DemoApplet.class WIDTH=140 HEIGHT=45>
<PARAM NAME="HELPURL" VALUE="help.htm">
</APPLET>
Remebemer java.awt.Applet
need a run
,paint
and destroy
methods, I tested some Applets
on ReadyToProgram
long years ago.