String driver = . . .; String url = . . .; String username = . . .; String password = . . .; Class.forName(driver); // Load driver Connection conn = DeviceManager.getConnection(url, username, password); . . . conn.close();