you have to write this code in your java programClass.forName("sun.jdbc.jdbcodbcDriver");Connectioncon=DriverManager.getConnection("jdbc:odbc:databasename");