I have two jars: CLI.jar and Some.jar; CLI.jar depends on Some.jar.

The major version of CLI.jar classes is 51 (Java 7)
The major version of Some.jar classes is 52(Java 8)

I run **java -jar CLI.jar** with JRE 1.7 on a host, it gave "Unsupported major.minor version 52.0" error.
I initially thought it was a JRE version issue, but when I switched to another host which also had JRE 1.7, I did not see this error and everything worked fine.

What did I miss here? I am a professional software developer and I know the basics and double checked the JRE version I am using.