如何在 Windows 7 上安装 Connector/J?

发布于 2024-11-02 23:54:43 字数 176 浏览 6 评论 0原文

我需要一步一步的指导。 我已经从mysql网站http://dev.mysql.com/usingmysql/java/

但现在我不知道从这里该做什么? 我有点卡住了..

I need step by step instructions.
I have downloaded if from the mysql website http://dev.mysql.com/usingmysql/java/

But now I am not to sure what to do from here?
I'm sort of stuck..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

只有影子陪我不离不弃 2024-11-09 23:54:43

只需将 JAR 文件放入运行时类路径中即可。这与环境无关。

具体如何做到这一点取决于它是什么类型的应用程序。例如,如果它是由 java.exe 执行的普通 Java 应用程序,则使用 -cp 参数指定类路径。

java -cp .;/path/to/mysql.jar com.example.Foo

类路径基本上是 JAR 文件和/或 .class 文件的路径集合,Java 应在其中查找类定义。

另请参阅:

Just put the JAR file in the runtime classpath. This is not environment-dependent.

How exactly to do that depends on what kind of application it is. If it's for example a plain vanilla Java application which you execute by java.exe, then use the -cp argument to specify the classpath.

java -cp .;/path/to/mysql.jar com.example.Foo

The classpath is basically a collection of paths to JAR files and/or .class files where Java should look for class definitions.

See also:

红墙和绿瓦 2024-11-09 23:54:43

以更直接的形式...将 jar 文件添加到

C:\Program Files\NetBeans 7.4\java\modules\ext

这是您的 netbeans 和繁荣版本,很好用

In a more direct form... Add the jar file to

C:\Program Files\NetBeans 7.4\java\modules\ext

That being your version of netbeans and boom, good to go

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文