In this video we are going to see how to install AdoptOpenJDK 8 from tar.gz archive on MX Linux 18.3 and set JAVA_HOME Environment Variable set Globally.
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.
This AdoptOpenJDK build shown in this video has Eclipse OpenJ9 JVM.
AdoptOpenJDK uses infrastructure, build and test scripts to produce prebuilt binaries from OpenJDK class libraries and a choice of either the OpenJDK HotSpot or Eclipse OpenJ9 VM. All AdoptOpenJDK binaries and scripts are open source licensed and available for free. It can be downloaded from
[ Ссылка ]
OpenJ9 is a high performance, scalable, Java™ virtual machine (VM) implementation that is fully compliant with the Java Virtual Machine Specification.
[ Ссылка ]
![](https://s2.save4k.ru/pic/fmtvAfqvylM/maxresdefault.jpg)