To connect using java.sql.DriverManager you need a JDBC url to connect to your database. JDBC urls are database specific, but they are all of the form
jdbc:<subprotocol>:<subname>
Where <subprotocol> identifies the driver or database (for example postgresql, mysql, firebirdsql,...