I have java 6 running in my machine.I compile my java 6 client that is invoking third party java 7 API (jar file).While compiling I get warning that
"major version 51 is newer than 50,the highest major version supported by this compiler.It is recommended that the compiler be upgraded"
I ignore the warning ,and run my client.
Then I get this error "UnsupportedClassVersionError...Unsupported major minor version 51.0
Interestingly I get the above error in the second call below !I thought the error should have been received in the first call itself.
//java 7 api call
ApiFactory.initialize();
//another java 7 api call
ApiSecurityCallback securityCB = new DefaultSecurityCallback("Guest", "Guest");
Infact I was expecting compilation error !
Can someone solve the mystery.
thanks
manjit