PLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

Updating Java to JDK v9 for use with Eclipse Add-in 2020.0 LTS

As a C++ programmer, when updating to firmware 2020.0 LTS you need to update the Eclipse® Add-in as well. The new Add-in version requires Java version 9 or above, while Eclipse® only needs version 8. Here's how to update Java and set it for Eclipse as default.

Due to the fact, that oracle requires subsciption beginning with Java 8 you need to install and maintain later versions manually. You can find the instruction on https://openjdk.java.net/install/ the first instructon at the top. To get the packages we can recommend two pages:

https://jdk.java.net/13/
or
https://adoptopenjdk.net/

After installing the JDK version 9 or later, you have two options:

  1. You can edit the eclipse.ini file, so that Eclipse is launched with the newer Java version.
    Instructions see here: https://www.matsim.org/docs/devguide/eclipse/jdk
  2. You can set your system environment variable JAVA_HOME to the new JDK.
    Instructions see here: https://docs.opsgenie.com/docs/setting-java_home