JDBC driver cannot be loaded after Java Update

I’m working with LibreOffice Base (v6.4.5.2 - x64 / Windows 10) connecting to MySql through the (Platform independent) JDBC connector downloaded from MySQL :: Download Connector/J

I started with mysql-connector-java-8.0.20.jar and, when Java updated to 8u21 I got the error:

The driver class ‘com.mysql.jdbc.Driver’ could not be loaded.

I updated the connector to mysql-connector-java-8.0.21.jar and it worked again. Now Java has updated to 8u261 and I have the same error again, but there is no new version of the JDBC driver.

I searched but didn’t found anything.


Can this help you? :

Thanks for the info @Hrbrgr (I cannot vote comments); I have read them but no new info.

The error disappeared after removing-and-readding mysql-connector-java-8.0.21.jar to the classpath… but don’t how to prevent it for happening again.