$ java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Server VM (build 1.6.0-b105, mixed mode)
$ java -version:1.6+ Foo
Unable to locate JRE meeting specification "1.6+"
Obviously if the "java" command is running version 1.6.0 then it meets the specification, without any need to "locate" a JRE.
This problem appears on Solaris SPARC and Solaris AMD64 at least. This works with a 1.5 binary asking for -version:1.5+ so it appears to be a regression. The problem also shows up with javac and javadoc.
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Server VM (build 1.6.0-b105, mixed mode)
$ java -version:1.6+ Foo
Unable to locate JRE meeting specification "1.6+"
Obviously if the "java" command is running version 1.6.0 then it meets the specification, without any need to "locate" a JRE.
This problem appears on Solaris SPARC and Solaris AMD64 at least. This works with a 1.5 binary asking for -version:1.5+ so it appears to be a regression. The problem also shows up with javac and javadoc.
- relates to
-
JDK-6549226 -version:nn on Ubuntu doesn't find other JVM's even when installed using Ubuntu/Debian packages
-
- Open
-
-
JDK-8011079 java -version:release option does not work as documented
-
- Closed
-