Amazon Corretto 8 JDK Installation on MX Linux 18 and set JAVA_HOME Environment Variable Globally
In this video we are going to see how to install Amazon Corretto 8 JDK on MX Linux 18 and set JAVA_HOME Environment Variable.
Here I am going to install amazon corretto 8 from tar gzip archive for linux.
1. First java is configured for the single user, by setting JAVA_HOME in .profile
2. Then Java is configured for multiple user, by setting JAVA_HOME and adding the java path in /etc/environment.
Important Note: While editinng /etc/environment for first time, file will be empty. We have to add the content manually.
First we need to add the System Path and then append the java bin directory at last and next line we can add the JAVA_HOME Environment variable.
Shell expansion variables will not work and be cautious while editing this file. Any syntax error or something means you can't login to this machine.
3. Finally Java is available to all users. java is configured for all users in mx linux. This is tested by logging in to mx linux with more than one user accounts.
Amazon Corretto is a no-cost, multiplatform, production-ready distribution of the Open Java Development Kit (OpenJDK). Corretto comes with long-term support that includes performance enhancements and security fixes. Corretto is certified as compatible with the Java SE standard and is used internally at Amazon for many production services. With Corretto, you can develop and run Java applications on operating systems such as Amazon Linux 2, Windows, and macOS.
https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/downloads-list.html