I have created a class that will connect to an oracle database, with three simple functions connect(), executeStatement(), and disconnect(). This class requires an oracle "thin" JDBC Jar in order for it to work, so it is part of the 'referenced libraries'.
What I want to do now is to export my class that I have mentioned above as a JAR file so the other programs can make use of it. However when I attempt to do just this, I will get the following issue.
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
Caused by: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
What method can I use to make it so that MY Jar file will have with it the oracle Jar file?