JDBC THROUGH LINUX FOR MAVEN

Database
Fan

JDBC THROUGH LINUX FOR MAVEN

HI Am using below code to establish JDBC connection am not able to connect when am running it from my linux machine , drivers are 16.00.00.32, I have two jars in classpath 

 

private static String user = "********";
private static String password = "********";
private static String url = "jdbc:teradata://1*********/tmode=ANSI,charset=UTF8";
public static void main(String[] args) throws IOException, ClassNotFoundException {
try {

Class.forName("com.teradata.jdbc.TeraDriver");

Connection Conn = DriverManager.getConnection(url,user,password);

String query = "select * from employee"; // 911

PreparedStatement stmt = Conn.prepareStatement(query);
ResultSet rs = stmt.executeQuery();

 

 

 

error :

 

java.lang.ClassNotFoundException: com.teradata.jdbc.TeraDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at com.fd.oip.cc.controller.CKSManager.main(CKSManager.java:71)
java.lang.ClassNotFoundException: com.teradata.jdbc.TeraDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at com.fd.oip.cc.controller.CKSManager.main(CKSManager.java:122)