Search The Inn

Friday, December 10, 2021

Java Upgrade for JMRI

After the 4.26 production release of JMRI (which should happen very soon since it's now at 4.25.8) the developers will require you to upgrade Java to version 11. Azul Software's JRE is one of the recommended upgrade packages. This is based on the OpenJDK software and includes choices for both a JDK (software development kit) and a JRE (runtime environment). The vast majority of users will only need the JRE.

<Update 2024-06-18>
The recommended (not required) version of AZUL Java is now 17.

It is available on the Azul downloads page.  Once there scroll down to the list of JREs and JDKs. You can select Java Version, Operating System, Architecture and Package to install. An example is shown in Fig 1. Windows users should select the "JRE" and the ".msi" package. This is the auto-installer. 


Fig 1 Azul selections

The author has had this Java version installed for some time now and has encountered no problems. It also appears to be slightly faster than the Oracle version.

<CAUTION!>
It is recommended to completely remove your current Java version before performing the upgrade. Some people have had strange results if they do not. If you are using Oracle's Java they have a tool to remove it completely, It is located here.


If you have an idea for a blog post here, let me know. If I can comment on it, I will or I'll see if someone else can and post it.

2 comments:

  1. Why a development kit and not a RE?

    ReplyDelete
    Replies
    1. Either the JDK or the JRE will work. I was a java developer for over 20 years. If you do not plan to develop anything download the JRE. The JDK will just give you a lot of stuff you'll probably never use.

      Delete