Since there is a Java version, it is managed by sdkman.
Recently it has become difficult to write an installation. Don't forget the ʻadpt` behind!
sdk install java 11.0.4.j9-adpt
I want to specify the java-version of a certain project, so use jenv.
The one you put in with sdkman can be added to jenv like this.
jenv add ~/.sdkman/candidates/java/11.0.4.j9-adpt/
By placing the .java-version
file directly under the directory, the Java version written there will be used in that directory.
$ cat .java-version
openjdk64-11.0.4
$ java --version
openjdk 11.0.4 2019-07-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.15.1, JRE 11 Mac OS X amd64-64-Bit Compressed References 20190717_289 (JIT enabled, AOT enabled)
OpenJ9 - 0f66c6431
OMR - ec782f26
JCL - fa49279450 based on jdk-11.0.4+11)
Eclipse settings that I don't always understand
Add it with Preferences
-> ʻInstalled JRE` in the menu, and insert the path of the JDK mentioned earlier.
It's the end.
Recommended Posts