Java Applet无法正常工作?

时间:2011-12-07 21:17:20

标签: java applet

我尝试上传我的applet html和我的.class但它无法正常工作?链接是:http://monaiz.net/holiday/holidayproject.html

我将holidayproject.class放在同一位置

这是我的applet代码:

<APPLET CODE = "holidayproject.class" WIDTH=1000 HEIGHT=650>
</APPLET>

1 个答案:

答案 0 :(得分:0)

谷歌的一些饲料。


java.lang.UnsupportedClassVersionError: holidayproject : 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(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Exception: java.lang.UnsupportedClassVersionError: holidayproject : Unsupported major.minor version 51.0