简体   繁体   中英

how do i know if java jdk is installled

I downloaded java from oracle site but am not sure if JDK is installed with it,ran java-version to check and got that result

java version "12.0.2" 2019-07-16
Java(TM) SE Runtime Environment (build 12.0.2+10)
Java HotSpot(TM) 64-Bit Server VM (build 12.0.2+10, mixed mode, sharing)

You have Java installed with the JDK kit. You wouldn't be getting that output otherwise.

If you are on an older version, just type java . That works too

Since Java 11 there is no separate JRE for Oracle and OpenJDK java distributions.

There is only JDK. And JDK has everything that JRE has. So in your case you have Java 12 JDK.

You can type jshell in the terminal.

Or just try typing jdb . Both will tell you about whether jdk is present or not.

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