How do I switch between Java 11 and Java 17 if I need to rollback my Radix Node from 1.1.0 to a previous version?

The 1.1.0 release of the Radix node software runs on Java 17. If you need to rollback your Radix Node to an earlier release that used Java 11, you can change the Java version as follows:

sudo update-alternatives --config java

# There are 2 choices for the alternative java (providing /usr/bin/java).
#
#  Selection    Path                                         Priority   Status
# ------------------------------------------------------------
# * 0            /usr/lib/jvm/java-17-openjdk-amd64/bin/java   1711      auto mode
#   1            /usr/lib/jvm/java-11-openjdk-amd64/bin/java   1111      manual mode
#   2            /usr/lib/jvm/java-17-openjdk-amd64/bin/java   1711      manual mode
#
# Press <enter> to keep the current choice[*], or type selection number:

To switch to Java 11 you would type 1 and then enter.
To revert back to Java 17, you would type 0 to auto select the highest version (Java 17).

2 Likes