The Java version 8 has reached its end of life. Since January 2019 the free, commercial version doesn't receive updates anymore (see oracle.com).
So (unless you want to switch to non-mainstream JDK providers like AdoptOpenJDK or Amazon Corretto) it's time to upgrade all Java projects to the latest version. Or at least to the latest long-term support version.
这篇博客文章是有关该路径上需要执行的步骤的经验报告。
Assessing status quo
Environment
将要更新的项目很小。 它是春季靴使用的应用Apache Wicket作为网络框架和摇篮用于构建管理。 主要的开发环境是MacBook Pro和IntelliJIDE。
Overview over installed JVMs
在MacOS上,使用终端上的此命令,可以列出系统上安装的所有JVM:
$ /usr/libexec/java_home -V
Matching Java Virtual Machines (3):
10.0.1, x86_64: "Java SE 10.0.1" /Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home
9.0.1, x86_64: "Java SE 9.0.1" /Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home
1.8.0_152, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home
In this case they were installed via Homebrew, so an overview can also be provided by the following command: