Consider using ClassLoader mechanism, there is a way to retrieve classes for resources on the fly. this will work with the most update class resources. First download jar file and then try to load using ClassLoader in the version of the class is up to date than yours.
The Java Classloader is a part of the Java Runtime Environment that dynamically loads Java classes into the Java Virtual Machine. Usually classes are only loaded on demand
Read this to know more about ClassLoaders