Although the EKG answer explains well what you need to do to start the Java 8 project, if you want Java 8 to be your default version on the system, you can install it as the Java home.
I (previously for maven) had the following line added to my .profile to install my Java home.
export JAVA_HOME = $ (/ usr / libexec / java_home)
Now, to install it in a specific version, I updated it to the next value
export JAVA_HOME = $ (/ usr / libexec / java_home -v 1.8)
This allows you to install a specific version as by default, but how to update the default value for the entire system (each user who did not install it on their own) still eludes me.
Note. I know that this is not a direct answer, but this is what people will come to when they are looking for it. Alas, this is too big to write in the comments. If this โanswerโ is better represented in another way, I would be happy to make a change.
source share