Most recent changes in the JDK have removed TLSv1 and TLSv1.1 support. MySQL supports only since version 8.0 TLSv1.2.