5

Java 8では、JDBC-ODBC-Bridgeは削除されます。一般的なエラーは次のとおりです。

java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver

可能な代替品を知っていますか?Easysoftを見つけました。ただし、このブリッジには、JavaVM内で実行されない追加のサーバーが必要でした。これはタイプ3ドライバーであり、タイプ1ドライバーではありません。他に選択肢はありますか?

4

2 に答える 2

3

Another solution is to take the ODBC stuff from the 1.7 JRE and package it up into it's own JAR file.

To do so (this is for Windows 64 but the process should be the same), you'll need to grab the JdbcOdbc.dll out of the 1.7 JRE bin and copy it into the 1.8 JRE bin.

Next, extract the contents of the 1.7 JRE's lib\rt.jar into another location. Once extracted, delete everything except

sun\
    jdbc\
        odbc\
            *
    security\
        action\
            LoadLibraryAction.class 

Then create a JAR file with the remaining contents (the root contents of the JAR should be META-INF and sun). Copy the JAR file into the 1.8 JRE's lib\ext folder.

于 2015-09-28T14:03:27.387 に答える
-1

In the meantime we have written our own JDBC-ODBC-Bridge based on JNA for our reporting software i-net Clear-Reports. Currently the driver is not an official product. But if you have interest then you can contact us.

于 2014-05-17T08:55:15.000 に答える