Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
76:upgrade_java [2023/08/07 14:06] tndl76:upgrade_java [2023/08/07 14:19] bdss
Line 7: Line 7:
 Copy the cacerts file to the location of the new JDK …/jdk_<new>/jre/lib/security/ Copy the cacerts file to the location of the new JDK …/jdk_<new>/jre/lib/security/
  
-=== \\ +=== Windows: ===
-Windows:  ===+
  
-\\ +  * Change JAVA_HOME in <stages>\config.bat according to the location of the new JDK and run <stages>\bin\reinstallservice.bat (as admin).
-Change JAVA_HOME in <stages>\config.bat according to the location of the new JDK and run <stages>\bin\reinstallservice.bat (as admin).+
  
-=== \\ +=== Linux: === 
-Linux:  ===+ 
 +  * Execute the following as root or with sudo 
 +  * Create new file that is getting loaded when system is starting/restarting 
 + 
 +<code> 
 +touch /etc/profile.d/java_home.sh 
 + 
 +</code> 
 + 
 +  * Fill the file with variable definition to have an always up to date definition of the JDK in JAVA_HOME and PATH env. variables 
 + 
 +<code> 
 +cat <<EOF> /etc/profile.d/java_home.sh 
 +export JAVA_HOME=\$(readlink -f /usr/bin/java | sed "s:/bin/java::"
 +export PATH=\$PATH:\$JAVA_HOME/bin 
 +EOF 
 + 
 +</code> 
 + 
 +  * Reload the environment variables with the following command or restart the system 
 +<code>
  
-\\ 
-Execute the following as root or with sudo\\ 
-Create new file that is getting loaded when system is starting/restarting\\ 
-touch /etc/profile.d/java_home.sh\\ 
-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 > /etc/profile.d/java_home.sh\\ 
-export JAVA_HOME=\$(readlink -f /usr/bin/java | sed "s:/bin/java::")\\ 
-export PATH=\$PATH:\$JAVA_HOME/bin\\ 
-EOF\\ 
-Reload the environment variables with the following command or restart the system\\ 
 source /etc/profile source /etc/profile
 +
 +</code>