Java management and STS (Eclipse) build path settings

Java version control

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

Specify the java version of a certain project

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)

Set to STS (Eclipse)

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.

スクリーンショット 2019-08-13 17.05.12.png

It's the end.

Recommended Posts

Java management and STS (Eclipse) build path settings
[OpenCV3.2.0] Eclipse (Java) settings (for Mac)
Notes on Java path and Package
CICS-Run Java applications-(3) Build management with Gradle
[Java] Set AdoptOpen JDK in STS (Eclipse)
Java Excel settings background color and background image
CICS-Run Java applications-(2) Build management with Maven
Download and install Eclipse (Java) (Mac version)
Java Development Basics ~ Development Environment Settings and Project Creation ~
Build and test Java + Gradle applications with Wercker
Build Java environment and output hello world [Beginner]
[Mac / Java / Eclipse / PostgreSQL] Connect Java application and database
Eclipse formatter settings
vagrant java build
JAVA_HOME and Path
Java and JavaScript
XXE and Java
VSCode Java Debugger for Java Build failed Causes and countermeasures
Java memory management and how to read GC Viewer