This line throws a ClassNotFoundException because you did not put the ojdbc14.jar file in the entire lib folder of the project. in addition to YOU ​​not defining the classpath for this particular jar required by java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver, just add the main ojdbc14.jar to your classpath.