JDK 6 version throws ClassNotFoundException when run under JDK 6
I’m trying to use the JDK 6 version of the library to introduce AAD authentication to an old legacy app that has to run under JDK 6. I’ve run across a couple of classes so far - Secret and ClientSecretBasic - that import java.nio.charset.StandardCharsets. That class wasn’t introduced until JDK 7, and trying to use either of those classes causes a ClassNotFoundException when running under JDK 6.
Also, the content-type dependency was compiled under JDK 7, and JDK 6 complains about an unsupported bytecode minor version when I try to include that .jar file in my project.
Comments (2)
-
reporter -
- changed status to resolved
Hi,
Support for Java 6 is becoming costly to maintain, so we decided to remove the build from the SDK: 52cc3a4a8a2a70845c27996286eb7e4c777654de
If you really need Java 6 feel free to fork and update the code where necessary.
- Log in to comment
The HTTPRequest classes also imports java.nio.charset.StandardCharsets.