简体   繁体   中英

i have installed jdk9 on my linux machine but jre file is missing, did i downloaded wrong tar file?

I have installed jdk9 on my linux machine but jre file is missing, did i downloaded wrong tar file?

this is the tar file i downloaded jdk-9-ea+174_linux-x64_bin.tar.gz

There isn't any problem with the tar file you have downloaded. There is a change in the directory layout with JDK-9 . Until JDK 8 , if you downloaded JDK, it contained the same jre/ directory (which is separately available for download) plus some more tools and libraries. This resulted in duplicate binary files in bin directories of the JDK and the jre within JDK . With JDK 9 , there are no more jdk/ versus jre/ wrapper directories, and binaries (such as the java tool) are not duplicated. The JDK and JRE are two separate types of modular runtime images and both have the same directory structure containing the bin , conf and lib directories.Just that,JDK contains the compilation tool like javac as earlier.

Reference : JDK 9 Migration doc

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM