java Netezza Jar 下载 - nzjdbc.jar
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/40667144/
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
Netezza Jar download - nzjdbc.jar
提问by Bala
I am new to this group as well as to Java.. I am looking at downloading nzjdbc.jar so that i will be able to connect to Netezza database with my java code and get some data for validations in my selenium automation script, may i know where can i download it.? I see some jar file here http://www.java2s.com/Code/Jar/n/Downloadnetezza350jar.htmnot sure if that will help me.. Can some one who is working in java / Netezza background help me with a sample code to connect to Netezza database and guide me in downloading the exact jar file that i need to download.
我是这个组的新手,也是 Java 的新手。知道在哪里可以下载吗?我在这里看到一些 jar 文件http://www.java2s.com/Code/Jar/n/Downloadnetezza350jar.htm不确定这是否对我有帮助.. 可以在 java / Netezza 背景下工作的人帮助我提供示例用于连接到 Netezza 数据库并指导我下载我需要下载的确切 jar 文件的代码。
Thanks
谢谢
回答by abhijitcaps
Class.forName(org.netezza.Driver); conn = DriverManager.getConnection(dbUrl, userName, password);
Class.forName(org.netezza.Driver); conn = DriverManager.getConnection(dbUrl, 用户名, 密码);
Plus you need the netezza driver (netezza-3.5.0.jar) in your class path or maven repo.
另外,您需要在类路径或 maven 存储库中安装 netezza 驱动程序 (netezza-3.5.0.jar)。