Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| 76:upgrade_java [2022/01/13 11:51] – created vtbr | 76:upgrade_java [2024/02/15 00:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Upgrade Java for Stages ====== | ||
| + | |||
| + | \\ | ||
| If you need to upgrade your Java version please proceed as follows: | If you need to upgrade your Java version please proceed as follows: | ||
| - | * Backup the //cacerts | + | * Backup the cacerts file from the location of the existing JDK '' |
| - | * Install JDK of new Java version on server. Please refer to the system requirements for supported JDK editions. | + | * Install JDK of new Java version on server. Please refer to the [[: |
| - | * Copy the //cacerts | + | * Copy the cacerts file to the location of the new JDK '' |
| - | * Change | + | |
| + | === Windows: === | ||
| + | |||
| + | * Change JAVA_HOME in < | ||
| + | |||
| + | === Linux: === | ||
| + | |||
| + | * Execute the following as root or with sudo | ||
| + | * Create new file that is getting loaded when system is starting/ | ||
| + | < | ||
| + | |||
| + | touch / | ||
| + | |||
| + | </ | ||
| + | |||
| + | * Fill the file with variable definition to have an always up to date definition of the JDK in JAVA_HOME and PATH env. variables | ||
| + | |||
| + | < | ||
| + | cat << | ||
| + | export JAVA_HOME=\$(readlink -f / | ||
| + | export PATH=\$PATH: | ||
| + | EOF | ||
| + | |||
| + | </ | ||
| + | |||
| + | * Reload the environment variables with the following command or restart the system | ||
| + | < | ||
| + | |||
| + | source / | ||
| + | |||
| + | </ | ||