Updating Java

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

Finding the instructions

Due to the fact that beginning with Java 8 Oracle requires subscription, you need to install and maintain later versions manually.

You can find the instruction on the OpenJDK website - it's the first instruction at the top.

Getting the packages

To get the packages we can recommend these two pages:

  • Oracle's Java.net, providing the current version and some early-access releases for future versions
  • AdoptOpenJDK, providing OpenJDK binaries and a build infrastructure

Setting up the source in Eclipse®

After installing the JDK version 9 or later, you have two options to set it up in Eclipse®:

  1. You can edit the eclipse.ini file, so that Eclipse is launched with the newer Java version (instructions see here)
  2. You can set your system environment variable JAVA_HOME to the new JDK (instructions see here)

 

 


 • Published/reviewed: 2020-05-13 • Revision 30 •