The Java Runtime Environment is the environment that the CFML code runs inside of. Depending on what version of Intranet Connections that you have installed the Java version may not be the latest. Updating to the latest version is a good idea to keep your site secure. It is important to keep in mind that you may also need to update your Tomcat version, instructions for this can be found here: Upgrade Tomcat Version.
Browse to the Java SE Downloads page which can be found at this link: http://www.oracle.com/technetwork/java/javase/downloads/index.html
Find the latest version of Java SE 8 at the time of writing the latest is Java SE 8u161/ 8u162. Click the Download link for the JDK. Select the appropriate bit type for your machine and Accept the license.
Stop Lucee/Tomcat Services
It could be problematic to copy over the libraries while the server that utilizes them is still running, so we're just going to stop the Lucee/Tomcat server before we proceed with the Tomcat Upgrade.
Installing the new JDK requires special attention as in addition to installing for Lucee to use the installation will also install for the server to use. In a way, this is good because in addition to keeping your Lucee installation up to date, you will also keep your system up to date.
Go ahead and launch the JDK installer that you just downloaded. If you already have a JDK installed on your system, you may get the following warning message - go ahead and click "Yes" to reinstall it:
When you get to the installer part, be sure to click on the checkbox that allows you to customize where you put it. This will make finding the JDK you installed a much easier process:
Click on the "Change" button to choose where you put your JDK.
Copy Files to JDK Directory
Now we need to remove the current Java files from Lucee. Before deleting what's currently there make a backup of the Lucee JDK directory (C:\lucee\jdk\), and copy over our new JRE files. Go to the C:\lucee\jdk\ directory, and delete everything that's INSIDE that directory. You do NOT want to delete the JDK directory itself, but all the files and directories that are inside it.
When the c:\lucee\jdk\ directory is empty, copy the contents of c:\jdk\ to the c:\lucee\jdk directory, so that the contents match:
Start Lucee and Test
Now go ahead and start the Lucee service back up the same way you stopped it earlier - via the services control. Browse to your intranet and go to the Admin page at the bottom you will find details for the installed version of Java check and confirm that it matches the version that you downloaded. If Lucee does not start, revert the changes by using the backup of the JDK directory.