Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I tell whether Java is Sun / Oracle / OpenJDK? [duplicate]

Possible Duplicate:
Which JRE I am using

I'm trying to figure out whether the Java installation in my HPC environment is running the Sun JVM, or Oracle, or OpenJDK. Since I don't have administrator access and I didn't install Java, is there a quick way I can determine which JVM I have installed?

standage@login4:~$ which java
/usr/bin/java
standage@login4:~$ java -version
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Server VM (build 1.6.0_03-b05, mixed mode)
standage@login4:~$ uname
Linux
like image 851
Daniel Standage Avatar asked Jun 05 '12 15:06

Daniel Standage


1 Answers

There's a java.vendor property from System.getProperties(), that should give you the info that you're looking for.

On my Mac it's:

java.vendor=Apple Inc.
like image 158
Will Hartung Avatar answered Oct 29 '22 18:10

Will Hartung