My JDK version is jdk1.8.0_45 and I have built an application using the default JDK Compliance setting in eclipse.
But my colleague is having a JRE with version jre1.8.0_20. So when my application is run in his system, it is throwing an
java.lang.UnsupportedClassVersionError Unsupported major.minor version 52.0
If I build the application with JDK compliance set to 1.7, it works fine obviously. But I don't want to lose all the features of JDK 8 just for a minor version mismatch.
And in eclipse I am not able to set a minor version compliance level. Is it possible to set it???
Or is Java forward compatible with minor version releases?? If so, obviously this error should not occur I believe.