Details
-
Improvement
-
Status: Open
-
Trivial
-
Resolution: Unresolved
-
None
-
None
-
None
Description
The 10 minute tutorial suggests 'java -version' to check if a JDK is installed. I believe it only shows the JRE. Because OpenJDK includes a JRE variant only, it can sometimes be confusing as to whether someone who's installed an openjdk package actually has the full JDK or just a JRE.
I believe the better command is: 'javac -version' to check for the existence of a java compiler, which should be better represented of having a JDK installed.
On my Red Hat 7 system, I installed java-1.8.0-openjdk-devel.x86_64
>>> javac -version
javac 1.8.0_242