Java中的MS Access驱动程序 [英] Driver for MS Access in java

查看:67
本文介绍了Java中的MS Access驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的要求是使用Java使用MS Access数据库.

My requirement is to use MS Access database using java.

什么是最佳解决方案?我应该下载并使用sun.jdbc.odbc.JdbcOdbcDriver还是应该通过在Windows系统中进行配置来遵循访问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?

该应用程序将在Windows系统上运行,而我正在使用Ubuntu进行开发.

The application will run on Windows system and I am using Ubuntu for development.

什么是最好的方法?

推荐答案

JdbcOdbcDriver 可以在JDK7或更低版​​本中使用,但它是

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; the odbc->Jdbc bridge is dependent on Windows.

您可以查看跨平台的解决方案: UCanAccess .值得根据您的情况来考虑.

You can look at a cross-platform solution: UCanAccess. It's at worth looking at with your circumstances.

这篇关于Java中的MS Access驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆