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.

2 Likes

Thanks @saper for helping me out

1 Like

in my case with Jenkins Enterprise 2.361.4.1 running on Windows i had to use

-cp "%BASE%\thirdpartyjars\*";"%BASE%\cloudbees-core-cm.war" executable.Main

1 Like