Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 19 Next »

Install Java. We recommend the OpenJDK Adoptium Temurin 8 or 11.

We strongly recommend that you use the latest version of Java.

For versions before Java 1.8.0_151, you must install the JCE Unlimited Strength Jurisdiction Policy files.

Step 1 Download and Install Java

On Windows

  1. From the Adoptium home page https://adoptium.net, select Termurin 8 or 11.
    This download is equivalent to the Adopt Open JDK HotSpot build of Java for 64 bit architectures.
  2. Click the Latest release button to download an installation package.
  3. Complete the installation process as directed by the package, accepting all defaults.

On Linux

These instructions assume you do not have a version of Java already installed on your server. If you do, and you need to retain the version of Java you currently have, but this is not compatible with PhixFlow, you may need to set up different users to use different versions of Java. Typically this is done by setting the PATH environment variable for certain users. In the instructions below it is stated that setting JAVA_HOME is optional, but if you have this type of set up, you are recommended to set JAVA_HOME for the users (usually just tomcat) that need to use the particular version of Java you have installed for PhixFlow. If you need further guidance, ask PhixFlow support for advice.

These instructions are based on the notes provided by Adoptium for installation, at the links below. We have suggested some settings, for example, the placement of the downloaded installation package (/tmp) and the location for the Java installatoin (/opt/jdk). You can select another location if you wish, provided that they meet any requirements stated in the Adoptium installation notes.


  1. Prepare the installation directory:
    • If the directory /opt/jdk does not exist, create it:
sudo mkdir /opt/jdk
sudo chmod 755 /opt/jdk
  1. Download Java from the Adoptium download page:

You can either:

  • Download the installation package using a web browser, and transfer the installation package to the directory /tmp on the server
  • Download the installation package directly to the server. To do this, find the URL of the latest download from the link on the website, and use it in a wget command as below:
cd /tmp
wget https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u312-b07/OpenJDK8U-jdk_x64_linux_hotspot_8u312b07.tar.gz
  • Extract the installation package. For example:
sudo tar xfvz /tmp/OpenJDK8U-jdk_x64_linux_hotspot_8u312b07.tar.gz --directory /opt/jdk
rm /tmp/OpenJDK8U-jdk_x64_linux_hotspot_8u312b07.tar.gz

The following steps are not mandatory, but are recommended so that all users on your server use the same version of Java. Run the following command:

sudo update-alternatives --display java


like

update-alternatives: error: no alternatives for java



like


sudo update-alternatives --config java

If you get no results of

If you get more than 1 result, you will need to check with the users and the system administrator whether they are happy to make the installed version of Java the standard for everyone. Other users can still use their preferred version of Java if they wish, using environment variables PATH, JAVA_HOME and simply by referring to the full path of the alternative Java installation.

sudo update-alternatives --install /usr/bin/java java /opt/jdk/jdk8u312-b07/bin/java 1

This command creates symbolic links so that Java can be run from a common location. If you type

which java

you will see

/usr/bin/java

rem

Step 2 Configure Security

Update the security settings to allow strong encryption and decryption of files.

1. Go to the JRE directory /lib/security/java.security file.

If you have installed a JDK rather than a JRE, you will find this directory under JAVA_BASE_INSTALLATION/jre, for example:
   C:\Program Files\Eclipse Adoptium\jdk-8.0.312.7-hotspot\jre

2. Set the crypto.policy to unlimited for the JRE used by PhixFlow, by deleting the #" to uncomment the line:
    - from: # crypto.policy=unlimited
    - to:    crypto.policy=unlimited

Step 3 Optionally Set the Environment Variable

Some installation processes set the environment variable JAVA_HOME for you automatically. If not, you do not need to set it. However, if you want to set it, specify the base installation directory of Java, for example:

  • On  Windows:  C:\Program Files\Eclipse Adoptium\jdk-8.0.312.7-hotspot
  • On Linux:  /usr/lib/jvm/adoptopenjdk-11-hotspot-amd64



  • No labels