Use the search and browse feature to view Kepware's repository of more than 500 Knowledge Base articles. Narrow your results or type your query into the search field below.

Search Solutions Results By: View All Solutions

Kepware Knowledge Base: Solution


How Do I Update Java for Kepware Software?


Last Update: 11/12/2018
Some Kepware software needs Java to function properly. This article outlines several Java update scenarios users may encounter. Kepware services are configured to detect the newest 32-bit JRE installed on the computer and use that at startup time. This can be overridden in the server settings, allowing a specific version of Java to be used independent of any updates applied. Kepware recommends using the latest version of Java and installing all appropriate updates.

Note: Java does not need to be enabled in the browsers to allow Kepware software to run. If desired, use the Java configuration tool to disable browser access.

Scenario 1: Java Version 7 or Earlier Minor Update
Java 7 and earlier install into a single folder, such as C:\Program Files (x86)\Java\jre7. During a minor upgrade, such as from Java 7 update 10 to Java 7 update 15, that folder is replaced by the new version. This replacement forces all running Java applications to be shutdown. Stop all KEPServerEX activity before doing the update to Java to prevent any data loss. Failing to stop the processes can cause the Java update to fail and or behave in odd ways as the Kepware services may try to restart the Java components during their upgrade.

To verify that KEPServerEX and its associated components are stopped, follow these steps:
  1. Open the Services window by selecting Start | Control Panels | Administrative tools | Services.
  2. Locate the KEPServerEX5.X runtime.
  3. Double-click on the runtime to open its properties.
  4. Set the Startup type to Disabled.
  5. Click the Stop button.
  6. Run the Java minor version update on the machine.
  7. Once completed, set the KEPServerEX runtime Startup type to Automatic and start the service.

Scenario 2: Java Version 7 Major Update
Java 7 and Java 8 reside in different folders. This allows for a system running Java 7 to have Java 8 installed without causing interruption to the running processes. During this update, there may be a notice of an older version of Java on the machine. Do not attempt to remove the old version until the computer has been restarted or the KEPServerEX runtime has been stopped and restarted. If a message appears that the Java install cannot continue due to processes running, the installer itself is trying to remove the old version. Cancel out of this message and remove the old version of Java manually after rebooting the machine. As long as the old version of Java is present, the Kepware components can continue to run on the old version until reboot. After rebooting, Kepware components, by default, start on the latest version of Java installed and the old version may be removed if desired.

Scenario 3: Java Version 8 Minor Update
Java 8 installs each minor update to its own folder based on the version number, such as C:\Program Files (x86)\Java\jre1.8.1_23, where 8.1.23 is the version. This allows minor revisions of Java to be installed while the Kepware processes are still running and for multiple versions of Java 8 to be installed on the computer. At the end of the update process, there is a prompt to remove old versions of Java. This should not be performed until the machine has been rebooted or the server runtime has been stopped and restarted with the new version installed. Kepware services that rely upon Java continue to use the original (older) version until the server runtime restarts. After restart, the services, by default, use the newest version available on the machine.

Tags
Java

Related Products
KEPServerEX