1, the downloaded version does not extract the JDK jre directory and the corresponding package generated automatically by the command requires
JDK into the bin directory, do the following command, and then generates a jre directory in the bin directory, the need jre directory to the parent directory, namely: JDK installation root
jlink.exe --module-path jmods --add-modules java.desktop --output jre
2, the low version of Eclipse or Idea probably does not support JDK11, there will be a lot of strange errors, such as Eclipse or the other Idea Java IDE update to the latest version will be able to support.
Encountered problems include:
Build its Lamdba expressions are allowed only at source level 1.8 or above
reference:
https://www.cnblogs.com/hejh/p/11276434.html
Original Address:
https://www.cnblogs.com/poterliu/p/11907581.html