Hi,

I am trying my first applet that fails to load...(Sorry for mix of Swedish and English)

My code is
Java Code:
import java.awt.*;
import java.applet.*;
public class applet1 extends Applet{
			public void paint(Graphics g){
	g.drawString("Come on come on", 20,20);


}
}
and my HTML code is

Java Code:
<applet code="applet1" width=200 height=60>
</applet>
And my error is


Java Plugin 1.6.0_27
Uses JRE version 1.6.0_27-B07 Java HotSpot (TM) Client VM
The user's home directory = C: \ Documents and Settings \ sesubsan
-------------------------------------------------- -
c: empty console
f: final item in slutföringskö
g: garbage collection
h: display this help message
l: dump ClassLoader list
m: print memory consumption
o: utlösarloggning
q: hide console
r: download policy configuration again
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: empty ClassLoader cache
0-5: set trace level to <n>
----------------------------------------------------


java.lang.UnsupportedClassVersionError: applet1 : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknow n Source)
at sun.plugin2.applet.Applet2ClassLoader.findClass(Un known Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(U nknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unk nown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unk nown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Undantag: java.lang.UnsupportedClassVersionError: applet1 : Unsupported major.minor version 51.0


Any help?