Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Follow instructions to install Java: Install Java

Update JAVA_HOME

If you have set the environment variable JAVA_HOME, check whether this needs updating in the system environment variables. Commonly this will be automatically updated by the installation process.

...

Installation of a new patch of Java should remove replace the previous version, but you should confirm that the previous version has been removed by examining the list of installed programs.

If you are migrating to a new major version of Java (e.g. you are moving from Java 8 to Java 11), you will need to remove the previous version from the list of installed programs.

...

If you have followed the standard installation instructions, you have already done this. If you have decide to take a different approach, remember to update JAVA_HOME in whichever way you have decided to set this.

Update service script

The following instructions assume that you have followed the recommended installation instructions for installing Tomcat for PhixFlow: Install Tomcat on Linux. If you have taken a different approach, ensure that you update JAVA_HOME in your startup process for Tomcat.

Open the tomcat service script at /etc/systemd/system/tomcat.service

...

If you have moved between major versions of Java (e.g. you are moving from Java 8 to Java 11), update the Java arguments as instructed here: Install Tomcat on Linux

Remove old version

...

The following instructions assume that you have followed the recommended instructions for installing Java for PhixFlow: Install Java. If you have taken a different approach, ensure that any old packages have been removed if you no longer need them (e.g. for a different program that runs on the same server that requires the previous version of Java).

If you have patched Java with a package manager, it will replace the previous version. However, if you are moving between major versions (e.g. from Java 8 to Java 11), you will need to remove the previous version using the package manager.

Delete the previous installation:

Code Block
cd /opt/jdk
sudo rm -r [PREVIOUS VERSION]

For example:

Code Block
sudo rm -r /opt/jdk/jdk-11.0.13+8

...

8

...