I have a Maven project that is distributed commercially that offers the ability to connect to many different databases via JDBC. Normally the customers place the necessary JDBC drivers in their web server's lib directory to make them accessible. We can't include certain jdbc drivers in the pom, for example Oracle, due to it's license type.
I'm trying to use an Oracle JDBC connection in the app while running in Eclipse. I need to get the JDBC jar on the class path and for some reason can't seem to be able to do that without adding it to the pom.xml via maven dependency.
I thought for sure going to Properties-->Java Build Path --> Libraries --> Add External JARs would work. When added to the build path in that way it shows correctly in the package explorer but if I run Class.forName at run time it throws ClassNotFoundException. Why isn't it on the class path at that point?