Using java -version gives me this.
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
Is it an OpenJDK or OracleJDK ?
Using java -version gives me this.
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
Is it an OpenJDK or OracleJDK ?
I think that you're using OracleJDK.
As I saw with a google search, the openJDK --version output is like this:
See: http://mail.openjdk.java.net/pipermail/jdk8-dev/2013-July/002840.html
On debian, jessie-backports, openjdk-8:
Using the ubuntu ppa for oracle-java-8:
I would assume, the string "java" at the beginning denotes Oracle Java, whereas the OpenJDK gets you "openjdk".
Call
sun.misc.Version#println
in java code will dump the version info to stderr. If you want to fetch the JDK version from java code.Like this: