Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 76:upgrade_java [2023/08/07 14:06] – tndl | 76:upgrade_java [2024/02/15 00:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| \\ | \\ | ||
| - | 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 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.\\ | + | |
| - | Copy the cacerts file to the location of the new JDK …/ | + | |
| - | === \\ | + | * Backup the cacerts file from the location of the existing JDK '' |
| - | Windows: | + | * Install JDK of new Java version on server. Please refer to the [[:76: |
| + | * Copy the cacerts file to the location of the new JDK '' | ||
| - | \\ | + | === Windows: === |
| - | Change JAVA_HOME in < | + | |
| - | === \\ | + | * Change JAVA_HOME in < |
| - | Linux: | + | |
| + | === 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 | ||
| + | < | ||
| - | \\ | ||
| - | 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 <<EOF > / | ||
| - | export JAVA_HOME=\$(readlink -f / | ||
| - | export PATH=\$PATH: | ||
| - | EOF\\ | ||
| - | Reload the environment variables with the following command or restart the system\\ | ||
| source / | source / | ||
| + | |||
| + | </ | ||