Versions Compared

Key

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

...

Install Java. We recommend the OpenJDK Adoptium Temurin 8 or 11. This is the build of Open JDK that we test with across linux and windows.

Note

Install the latest version and patch of Java

...

We

...

Installation

Windows

...

strongly recommend that you use the latest version of Java. These instructions will give you the latest patch. You can choose to install Java 8 or Java 11. Unless you are updating an existing installation of Java 8 to the latest patch, please install Java 11.

If you are still on Java 8, you should consider updating to Java 11. Check on the controls in place in your organisation for moving to a different major version of a software package. However, in practice, moving from Java 8 to Java 11 is very unlikely to have an impact, and can be treated much as patching an existing version.

Windows

Download and install Java

  • Go to the releases page on the Adoptium site: https://adoptium.net select
    • Termurin 8
    • (Note that, by default, this will download the HotSpot build of Java for 64 bit architectures)
  • Press the button Latest release to download the latest version of Adoptium Open JDK 8 HotSpot for Windows 64-bit
  • This will download an MSI installation package. Complete the installation process as standard for an MSI package, accepting all defaults

Linux

https://adoptium.net/installation.html?variant=openjdk8&jvmVariant=hotspot#x64_linux-jdk

cd /tmp wget https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public

Clean up

cd /tmp

rm adoptopenjdk-keyring.gpg* public

Configuration

  • /temurin/releases
  • Select the package you need, this is mostly like to be:
    • Operating System: Windows
    • Architecture: x64
    • Package Type: JDK
    • Version: 11

Image Added

  • Download the msi package
  • Complete the installation process as directed by the package, accepting all defaults.

Configure Security

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

...

.

...

Open the java.security file.

...

If you have installed a JDK rather than a JRE, you will find this directory under

JAVA_BASE_INSTALLATION/jre

E.g.

Find the installation directory for Java. Typically this will be something like C:\Program Files\Eclipse Adoptium\jdk-

...

11.0.

...

14.

...

101-hotspot

...

...

The

...

Code Block
languagetext
# crypto.policy=unlimited

java.security file will be at:.

  • For Java 8, JAVA_INSTALLATION\jre\lib\security\java.security
  • For Java 11, JAVA_INSTALLATION\conf\security\java.security

Set the crypto.policy

Set the crypto.policy to unlimited, by deleting # to uncomment the line:

...

from #crypto.policy=unlimited
to   crypto.policy=unlimited

...

  • You do not need to set the environment variable JAVA_HOME, but some operators find this useful for convenience. Note that some installation processes will set this for you. If you decide you wish to set this and it has not been set by your installation process, set it to the base installation directory of Java, e.g.

...

C:\Program Files\Eclipse Adoptium\jdk-8.0.312.7-hotspot

Linux

Download and install Java

Note

These instructions assume you do not have a version of Java already installed on your server.

Instructions for installing on linux are here: https://adoptium.net/installation/linux/

In particular, for installing on Debian based linux distributions, carry out the following steps:

  • Install pre-requisite packages:
Code Block
sudo apt-get install -y wget apt-transport-https
  • Install the Eclipse Adoptium GPG key:
Code Block
wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | sudo tee /usr/share/keyrings/adoptium.asc
  • Add the Eclipse Adoptium repository:
Code Block
echo "deb [signed-by=/usr/share/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | sudo tee /etc/apt/sources.list.d/adoptium.list
  • Install Java:
Code Block
sudo apt-get update
sudo apt-get install temurin-11-jdk


Configure Security

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

Open the java.security file

Find the installation directory for Java with the command:

Code Block
update-alternatives --list java

This will give you the full path of the java program, for example: /usr/lib/jvm/temurin-11-jdk-amd64/bin/java. The installation directory in this case is /usr/lib/jvm/

...

temurin-11-

...

jdk-amd64

...

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

...

.

The java.security file will be at:.

  • For Java 8, JAVA_INSTALLATION/jre/lib/security/java.security
  • For Java 11, JAVA_INSTALLATION/conf/security/java.security

Set the crypto.policy

In the java.security file, set the crypto.policy to unlimited, by deleting # to uncomment the line:

from #crypto.policy=unlimited
to   crypto.policy=unlimited