Changing the JRE being Used

My company wants us to use an OpenJDK version as opposed to the Oracle JRE version 1.8.0_381 which the Sonatype Nexus 3 repository is currently using. What is installed on the box in the /usr/java/jre1.8.0_381 directory is going to be blown away and I need to point the Sonatype Nexus 3 software to use the OpenJDK version of the JRE that was installed here. I tried modifying the /opt/nexus-3.57.0-01/nexus script to uncomment the over ride and put in the new directory but it is still using the old one.