Question

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
Was it helpful?

Solution

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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top