I am trying to run KNIME using the copy of the Java Runtime Environment (JRE) that is installed on my system, rather than the copy of JRE that come bundled with KNIME. I need to do this because I am configuring a machine for a very security-conscious organization that only wants to allow a particular version of Java (v. 8 build 25) to be installed on its equipment.
I am running KNIME v. 3.3.1 on Windows 7. The system JRE is version 8 build 121.
One of the KNIME FAQs suggests that KNIME will begin using the system version of Java as soon as the directory <path_to_KNIME>/jre is removed or renamed. "By removing or renaming this folder, you will disable this JRE and Eclipse will (try to) use the JRE installed on your operating system." This approach did not, alas, work for me: renaming the directory and launching KNIME generated the following error message: "... No Java virtual machine was found after searching the following locations:
C:\Program Files\KNIME\jre\bin\javaw.exe
javaw.exe in your current PATH"
In fact, the program javaw.exe is installed in the directory C:\Program Files (x86)\Java\jre1.8.0_121\bin. But apparently KNIME could not find this.
I next tried editing my system PATH (using these instructions) to add the directory C:\Program Files (x86)\Java\jre1.8.0_121\bin. Launching KNIME now generates a new error: "Error: missing 'server' JVM at 'C:\Program Files (x86)\Java\jre1.8.0_121\bin\server\jvm.dll'. Please install or use the JRE or JDK that contains these missing components."
So apparently, KNIME is now able to find the file javaw.exe, but is not able to find one or more other components that it needs to run Java.
(There is in fact a file named jvm.dll in the directory C:\Program Files (x86)\Java\jre1.8.0_121\bin\client. I tried copying this ~\client directory to a new directory C:\Program Files (x86)\Java\jre1.8.0_121\bin\server. Launching KNIME then generates a different fatal error.)
I am now stuck. I can’t see how to get KNIME to recognize and use the system-installed version of Java RE. Can anyone advise me how to make this work?