Skip to content

Instantly share code, notes, and snippets.

@sinewalker
Created October 15, 2012 04:53
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sinewalker/3890869 to your computer and use it in GitHub Desktop.
java.vendor id in OpenJDK
[hax]virbuntu$ cat vendor.java
public class vendor {
public static void main(String[] a) {
System.out.println(System.getProperty("java.vendor"));
System.out.println(System.getProperty("java.vendor.url"));
System.out.println(System.getProperty("java.version"));
}
}
[hax]virbuntu$ java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.4) (6b24-1.11.4-1ubuntu0.12.04.1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
[hax]virbuntu$ java vendor
Sun Microsystems Inc.
http://java.sun.com/
1.6.0_24
[hax]virbuntu$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment