public
Created

java.vendor id in OpenJDK

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
[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$

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.