Neutron
Neutron

Reputation: 23

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)

Upvotes: 0

Views: 405

Answers (3)

Michał Krzywański
Michał Krzywański

Reputation: 16910

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.

Upvotes: 1

abhivemp
abhivemp

Reputation: 932

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

Upvotes: 2

Vicrobot
Vicrobot

Reputation: 3988

You can type jshell in the terminal.

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

Upvotes: 0

Related Questions