Error while running an Applet

Hi

I have written an Applet which was working fine initiallly with JRE 1.4.

Then I tried the same with JRE 5.0.

It gives some error....

Again when I tried with 1.4 it threw following error....

Can anyone explain what is it all about.

Thank you...

java.lang.UnsupportedClassVersionError: com/arysys/viewer/DocumentViewer (Unsupported major.minor version 49.0)

at java.lang.ClassLoader.defineClass0(Native Method)

at java.lang.ClassLoader.defineClass(Unknown Source)

at java.security.SecureClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.access$100(Unknown Source)

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadCode(Unknown Source)

at sun.applet.AppletPanel.createApplet(Unknown Source)

at sun.applet.AppletPanel.runLoader(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

[1480 byte] By [ketchara] at [2007-10-2 0:40:47]
# 1
Java 1.4 doesn't recognize/handle/accept classfiles that are intended for Java 5. If you use Java 5 to create classfiles that need to run on 1.4, use the -target 1.4 option on the javac command.Java 5 creates classfiles that are identified as version 49.0
ChuckBinga at 2007-7-15 16:55:42 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
Thanks for the information
ketchara at 2007-7-15 16:55:42 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 3

Hi,

I am using Win2kSP2, IE6 and J2RE1.3. On my web page only the grey box "Loading Java Applet" appers with "error:null" or "Opening page http://...../gui.html" in the status bar.

Its working fine on one PC, but giving this problem in the other. Can anyone please help regarding this.

Thanks,

Sameer

ideasameer@yahoo.com

ideasameera at 2007-7-15 16:55:42 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...