I have a VM with Ubuntu 18.04 with JDK 12 as default java in it. I want to setup a Jenkins server on it and as it do not support JDK 12 yet, i have installed JRE 8 in it to support Jenkins.
How to configure Jenkins such that it will use this JRE8 instead of JDK12??