Ticket #496 (new defect)

Opened 6 years ago

Last modified 6 years ago

Applet error: bad major version

Reported by: kmaclean Owned by: kmaclean
Priority: major Milestone:
Component: SpeechSubmission Version: 0.1-alpha
Keywords: Cc:

Description

deom this post: Applet error: bad major version

 Applet error: bad major version
User: posman
Date: 9/14/2013 2:14 pm
Views: 104
Rating: 0    Rate [
]

Hi

I'm trying to collarate and donate my voice to this project but I have a problem with the applet.

This is the entire stacktrace I get when loading your page

java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=speechrecorder/RecorderApplet, offset=6
    at java.lang.ClassLoader.defineClass(ClassLoader.java:287)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:74)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:540)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:451)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Plugin2ClassLoader.java:1040)
    at sun.plugin2.applet.Plugin2ClassLoader.access$100(Plugin2ClassLoader.java:82)
    at sun.plugin2.applet.Plugin2ClassLoader$2.run(Plugin2ClassLoader.java:1017)
    at java.security.AccessController.doPrivileged(AccessController.java:362)
    at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Plugin2ClassLoader.java:981)
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:156)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Plugin2ClassLoader.java:277)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:207)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:638)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Plugin2ClassLoader.java:683)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:3088)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1529)
    at java.lang.Thread.run(Thread.java:738)
Exception: java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=speechrecorder/RecorderApplet, offset=6

The version of Java I have installed is 1.7.0

--- (Edited on 9/14/2013 1:14 pm [GMT-0500] by posman) --- 

Change History

comment:1 Changed 6 years ago by kmaclean

Create Jar package of Speech Submission Applet
****Make sure you have Java 1.5 compliance****
# yum install java-1.5.0-gcj*
Eclipse > Windows > Preferences > Java > Installed JREs
	Add > Standard VM
	JRE Home: /usr/lib/jvm/java-1.5.0  # should fill remainder automagically
	Finish
Eclipse > Windows > Preferences > Java > Compiler
	JDK Compliance: Compile compliance level: 1.5

Last edited 6 years ago by kmaclean (previous) (diff)

comment:2 Changed 6 years ago by kmaclean

see this post: Java Errors: “UnsupportedClassVersionError…bad major version at offset=x”

This error indicates that your projects were compiled with a higher level Java compiler than the runtime can support.

Note: See TracTickets for help on using tickets.