Another solution is to take the ODBC material from the 1.7 JRE and pack it into your own JAR file.
To do this (this is for Windows 64, but the process should be the same), you need to take the JdbcOdbc.dll from the 1.7 JRE bin and copy it to the 1.8 JRE box.
Then extract the contents of 1.7 JRE lib\rt.jar to another location. After extracting, delete everything except
sun\ jdbc\ odbc\ * security\ action\ LoadLibraryAction.class
Then create a JAR file with the remaining content (the root content of the JAR must be META-INF and sun). Copy the JAR file to the 1.8 JRE lib\ext folder.
source share