Help with an error
I am taking a intro to programming class and the teacher is not very helpful. I have asked him this same question, but it has been about 3 weeks and still no answer! So, maybe someone from here could help.
The computers in our classroom have no problem with running the programs that I write. However; when I try to run the programs on any other computer (at my home or at the school), they come up with this error: (the programs compile just fine)
"Exception in thread "main" java.lang.UnsupportedClassVersionError: test (Unsuppo
rted major.minor version 50.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 java.lang.ClassLoader.loadClassInternal(Unknown Source)"
The other weird thing I found about this error was that if I type ".class" when trying to run a program from DOS, it gives me this error:
"Exception in thread "main" java.lang.NoClassDefFoundError: test/class"
Has anyone encountered this? I have tried using every resource I have, but nothing I have tried has worked.
Thanks,
cardioman

