How to use jdbc driver in jenkins running on openjdk 11

In openjdk 11, jre folder is removed so we can’t keep the external jars.
What is the alternative approach for keeping the external jars like ojdbc.

You can try starting jenkins.war like this:

java -cp /usr/local/lib/jython/jython.jar:/tmp/jenkins.war Main       

where /tmp/jenkins.war is my location of the jenkins.war file, and /usr/local/lib/jython/jython.jar is some additional JAR file I need.

Thanks @saper for helping me out

1 Like