简体   繁体   English

Java中的MS Access驱动程序

[英]Driver for MS Access in java

My requirement is to use MS Access database using java. 我的要求是使用java使用MS Access数据库。

What would be the best solution? 最好的解决方案是什么? Should I download and use sun.jdbc.odbc.JdbcOdbcDriver or should I follow the usual way of connecting to Access database by configuring it in WIndows system? 我应该下载并使用sun.jdbc.odbc.JdbcOdbcDriver还是应该通过在Windows系统中进行配置来遵循访问Access数据库的常规方法?

The application will run on Windows system and I am using Ubuntu for development. 该应用程序将在Windows系统上运行,我正在使用Ubuntu进行开发。

What will be the best approach? 最好的方法是什么?

The JdbcOdbcDriver would work in JDK7 or below but it was removed in JDK8 and if you're using Ubuntu for development that won't work anyway; JdbcOdbcDriver可以在JDK7或更低版​​本中使用,但在JDK8中已删除 ,并且如果您使用Ubuntu进行开发也将无法正常工作。 the odbc->Jdbc bridge is dependent on Windows. odbc-> Jdbc桥取决于Windows。

You can look at a cross-platform solution: UCanAccess . 您可以看一下跨平台的解决方案: UCanAccess It's at worth looking at with your circumstances. 根据您的情况值得考虑。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM