import java.sql.*; import java.util.*; import java.io.*; public class Connect { public Connect () { try { String driverName = "sun.jdbc.odbc.JdbcOdbcDriver"; Driver driver = (Driver)Class.forName(driverName).newInstance(); // Create a properties object and add username and password Properties p = new Properties(); p.put("user", "p8cp1"); p.put("password", "ismael"); // Specify a Url for the database String dbURL = "jdbc:odbc:fiaa"; Connection c = driver.connect(dbURL, p); } catch (Exception e) {} } public static void main (String args[]) { Connect app = new Connect(); } }