Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
76:upgrade_java [2023/08/07 14:06] – tndl | 76:upgrade_java [2023/08/07 14:19] – bdss | ||
---|---|---|---|
Line 7: | Line 7: | ||
Copy the cacerts file to the location of the new JDK …/ | Copy the cacerts file to the location of the new JDK …/ | ||
- | === \\ | + | === Windows: === |
- | 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 / | ||
+ | |||
+ | </ | ||