

With this I get a similar jar, with most dependencies, but ojdbc is still excluded. Is there any way to include the ojdbc dependencies, either as a jar or as class files, in my runnable jar?ĮDIT: Based on Essex Boy's comment, I used the shade plugin like so: I checked and the ojdbc jar is present under my. The problem is that the ojdbc (com/oracle/jdbc) is not there, and I'm getting ClassNotFoundExceptions runtime.

there is an 'org/apache/log4j' folder in the root of the jar with Log4j class files. The resulting jar includes most of the dependencies in form of class files, e.g. Setup maven-assembly-plugin to generate a runnable jar like this:.Following this guide, I managed to include ojdbc as dependency.Setup dependencies like Log4j as Maven dependencies.Converted the project to a Maven project.However this is intended to be a standalone app, so I wanted to setup a build process which in the end spits out a single jar with all dependencies included. Previously the ojdbc jar (and all other dependencies) had to be on the classpath for the jar to be able to run. If any errors/problems arise when using this file, then use ojdbc6.jar (which also comes from the Oracle 11G Rel2 client) instead.I have a Java project, which connects to Oracle 12c database.TIP: Assuming you have installed the Oracle 11G rel2 client in the default location, then you can find this (on the Controller application server) here: C:\app\Administrator\product\11.2.0\client_1\jdbc\lib.Use the ojdbc5.jar file (which comes from the Oracle 11G Rel2 client), because this is the version that is most tested 'in the field'. If using Oracle 11G R2 as your database server:


However, based on customer feedback, IBM Support recommends the following as a basic guideline:
