Eclipse 无法加载 JDBC 驱动程序类:net.sourceforge.jtds.jdbc.Driver?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25311635/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse cannot load JDBC Driver class: net.sourceforge.jtds.jdbc.Driver?
提问by MotoDave452
I am working with the BIRT Report Design Feature that is built into eclipse. I am using this to develop a report for an application we use at work. In BIRT, I added a data source which would be the database that I want to pull my data from. The problem occurs whenever I try to access Data Sets to write my query that will specify the data that I want to pull in. When I try to do this I get an error:
我正在使用 Eclipse 中内置的 BIRT 报告设计功能。我正在使用它为我们在工作中使用的应用程序开发报告。在 BIRT 中,我添加了一个数据源,它是我想从中提取数据的数据库。每当我尝试访问数据集以编写将指定我想要提取的数据的查询时,就会出现问题。当我尝试这样做时,我收到一个错误:
cannot load JDBC Driver class: net.sourceforge.jtds.jdbc.Driver
无法加载 JDBC 驱动程序类:net.sourceforge.jtds.jdbc.Driver
Does anyone know if I need to get certain .jar file and where to put it? Or do I need to download a special driver or plugin or what exactly do I need to do to resolve this?
有谁知道我是否需要获取某些 .jar 文件以及将它放在哪里?或者我是否需要下载特殊的驱动程序或插件,或者我需要做什么来解决这个问题?
采纳答案by SparkOn
cannot load JDBC Driver class: net.sourceforge.jtds.jdbc.Driver
cannot load JDBC Driver class: net.sourceforge.jtds.jdbc.Driver
is basically because your application has dependency on jtds.jar
which is unavailable in the classpath so first download the jar from hereand add it to the classpath.
基本上是因为您的应用程序依赖于jtds.jar
类路径中不可用的内容,因此首先从此处下载 jar并将其添加到类路径中。
This is whereyou may want to get start with
这是您可能想要开始的地方