-2

我正在notepad++中为java mssql连接编写代码我没有使用任何ide。

谁能给我代码。

如何设置类路径?

jtde 或 jdbc 驱动程序我需要两个驱动程序的代码

提前致谢

4

1 回答 1

0

您需要下载 JDBC 驱动程序 JAR 文件(以及所有依赖项)。然后打电话

java -cp path_to_jar/jtds-1.3.1.jar;path_to_jar/jtde.jar;path_to_classes;path_to_other_jars/otherjar.jars your_main_class

(所有名称均为样本名称)

在 Linux 上,您必须使用:分隔符

于 2014-05-04T10:54:54.380 回答