I have made use of JDBC in one of my projects and it worked flawlessly in Eclipse. I had to add the ojdbc6.jar
to Java Build Path to the project BTW. (I have also not included any Class.forName
statements in the code since I heard it's optional for JDBC 4 and above)
When I export the project into a jar file, and try to run it, it complains saying "No driver found for JDBC" and so on. I can see that this is because the ojdbc6.jar
is missing from the build path now. Can someone please let me know of a solution?
Thanks!