display presence of mlvm in output of: 'java -version'

Stephen Bannasch stephen.bannasch at deanbrook.org
Sat Jul 31 16:08:33 PDT 2010


It would be nice if there was some indication in the output of: 'java -version' to indicate that the 1.7.0 build included the 
mlvm patchset.

I've updated my build scripts so that it's easy to build Java 1.7.0 and 1.7.0-mlvm.

The bash function I use to switch which Java I am using works fine but the info returned by 'java -version' can't be easily 
used to distinguish the two different builds.

I can use: `which java` to tell the difference however.

   $ pickjdk
    1) 1.3.1
    2) 1.6.0
    3) Soylatte16-i386-1.0.3
    4) Soylatte16-amd64-1.0.3
    5) 1.7.0
    6) 1.7.0-mlvm
    7) None
   Choose one of the above [1-7]: 5

   $ which java
   /usr/local/java-1.7.0/bin/java

   $ java -version
   openjdk version "1.7.0-internal-fastdebug"
   OpenJDK Runtime Environment (build 1.7.0-internal-fastdebug-stephen_2010_07_31_17_35-b00)
   OpenJDK 64-Bit Server VM (build 19.0-b03-fastdebug, mixed mode)

   $ pickjdk
    1) 1.3.1
    2) 1.6.0
    3) Soylatte16-i386-1.0.3
    4) Soylatte16-amd64-1.0.3
    5) 1.7.0
    6) 1.7.0-mlvm
    7) None
   Choose one of the above [1-7]: 6

   $ which java
   /usr/local/java-1.7.0-mlvm/bin/java

   $ java -version
   openjdk version "1.7.0-internal-fastdebug"
   OpenJDK Runtime Environment (build 1.7.0-internal-fastdebug-stephen_2010_07_31_18_37-b00)
   OpenJDK 64-Bit Server VM (build 19.0-b03-fastdebug, mixed mode)



More information about the mlvm-dev mailing list