英文:
After JEP 220 changes does tools.jar equivalent ship pre-installed with JRE?
问题
迁移指南似乎表明,在JEP 220之后,JDK和JRE都安装在lib
目录中。
动态链接库和完整的JDK内部实现。
由于它说“完整”,这是否意味着例如之前未随JRE一起提供的tools.jar
现在确实作为libjvm
的一部分随JRE一起提供?
分析Ubuntu软件包
似乎JDK版本在lib/
下不会安装任何额外的内容,尽管它确实在jmods/
下安装了一堆模块。据我所知,.jmods
与模块化映像一起提供,但对于构建应用程序不是严格必要的?
我理解在JDK 9之前的世界中已经多次提出了类似的问题,但在JEP 220引入重大变化之后,JDK安装提供了哪些额外的API,而仅JRE安装不提供这些API?
英文:
Migration guide seems to state that after JEP 220 both JDK and JRE install in lib
directory
> dynamically linked libraries and the complete internal
> implementation of the JDK.
Since it says "complete" does this mean, for example, tools.jar
which previously did not ship with JRE, now indeed ships on JRE as part of libjvm
?.
Analysing Ubuntu packages
it seems JDK version does not install anything extra under lib/
although it does install bunch of modules under jmods/
. AFAIU, .jmods
are relevant if one ships app with modular image, however they are not strictly necessary for building an application?
I understand similar question has been asked many times in pre-JDK9 world, however after JEP 220 introduced significant changes, what extra APIs are provided by JDK installation that are not provided by just JRE installation?
专注分享java语言的经验与见解,让所有开发者获益!
评论