我在哪里可以下载mysql jdbc jar? [英] Where can I download mysql jdbc jar from?

查看:92
本文介绍了我在哪里可以下载mysql jdbc jar?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装并尝试使用jasper report studio。当您尝试为报告创建数据源时,您遇到的第一个砖墙是

I installed and tried to use jasper report studio. The first brick wall you hit when you try to create a datasource for your reports is

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

论坛说我需要在类路径上安装一个jar。我不知道怎么做,所以第一个障碍是如何获得罐子。我能找到的唯一地方是:

The forums say I need to install a jar on the classpath. I have no idea how to do this, so the first hurdle is how to get the jar. The only place I can find is this:

http://dev.mysql.com/downloads/connector/j/

但不幸的是,这会给你一个msi安装程序,而不是jar。我不想安装东西,只需要拿到jar。

but this unfortunately gives you an msi installer, not a jar. I don't want to install stuff, just get the jar.

我安装了mysql DB,已经通过程序文件中的install dir进行了拖网,但是不能找到jar。

I have mysql DB installed, had have trawled through the install dir in program files, but can't find the jar.

任何人都知道官方(非恶意软件网站)获取mysql jar的方法吗?它很难找到,这似乎很奇怪。

Anyone know the official (not malware site) way to get hold of the mysql jar? It seems bizarre that its so hard to find.

我有Windows 8 64位和mysql 5.6。

I have windows 8 64 bit and mysql 5.6.

推荐答案

转到 http://dev.mysql.com/downloads / connector / j 并在下拉列表中选择Platform Independent,然后它会显示下载tar.gz文件或zip文件的选项。

Go to http://dev.mysql.com/downloads/connector/j and with in the dropdown select "Platform Independent" then it will show you the options to download tar.gz file or zip file.

下载zip文件并解压缩,你会发现 mysql-connector-XXX.jar file

Download zip file and extract it, with in that you will find mysql-connector-XXX.jar file

如果您正在使用maven然后您可以从链接添加依赖关系 http://mvnrepository.com/ artifact / mysql / mysql-connector-java

If you are using maven then you can add the dependency from the link http://mvnrepository.com/artifact/mysql/mysql-connector-java

选择要使用的版本并在 pom.xml中添加依赖项 file

Select the version you want to use and add the dependency in your pom.xml file

这篇关于我在哪里可以下载mysql jdbc jar?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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