I am receiving an error: java.lang.NoClassDefFoundError: com/mysql/jdbc/DocsConnectionPropsHelper when trying to connect to the database. The thing is, it is not even an mysql database, it is an Oracle database. Below is the code I am using to form the connection.
Why would I be getting this error if the database is an Oracle DB.Code:try { Class.forName("oracle.jdbc.driver.OracleDriver"); String database = "jdbc:oracle:thin:@localhost:1521:xe"; myConn = DriverManager.getConnection( database, "user", "password"); logger.info("Connection successful"); // System.out.println("Connected"); } catch (Exception exc) { logger.severe(exc.toString()); }




Reply With Quote