1) Click Start > run > type notepad
2) type the following code into it.
public class MyApplet extends Applet
public void paint(Graphics g)
3) now save it as MyApplet.java
4) again open notepad and type the below code
<applet code=MyApplet.class width=400 height=400>
5) save it as xyz.html
6) The Next Step is to run java compiler. Open start > run > type cmd
7) In order to create byte code first go to specific location of your program then type:
8) It is successfully compiled. To see your smiling face :P in cmd window type:
Here is a Snapshot.
Note: For any issues related with Program Compiling or JRE take a look at Compile JAVA program . For any queries related with concept of this program ping me on Facebook.