import java.sql.*; public class Connect { public static void main (String[] args) { Connection conn = null; try { String userName = "root"; String password = "password123!"; String url = "jdbc:oracle:thin:@localhost:3306:procomport"; //Class.forName ("oracle.jdbc.driver.OracleDriver"); conn = DriverManager.getConnection(url, userName, password); //Connection connection = DriverManager.getConnection(url , userName, password); System.out.println ("Database connection established"); } catch (Exception e) { System.err.println ("Cannot connect to database server"); } finally { if (conn != null) { try { conn.close (); System.out.println ("Database connection terminated"); } catch (Exception e) { /* ignore close errors */ } } } } } This is my code I have multiple different databases but it wont connect to any of them what's the problem with this? I keep getting the error it cannot connect to the database. Although I can connect to it using other management tools is it a driver issue? How would I be able to tell if I had the drivers necessary?