I am compiling a java program which is giving me the following error :
The java class could not be loaded. java.lang.UnsupportedClassVersionError: `bad major version at offset=6`
Now generally,if you compile with source compatible 1.6 you need JRE 6 to execute the program. but right now my class file is compiled in 1.7 and my JRE version is 1.6.
I am not using eclipse or any tool but using a host type shell script to execute the program.
Is there any way to resolve this issue without changing the JRE version ?