Lines Matching defs:version
6 * under the terms of the GNU General Public License version 2 only, as
12 * version 2 for more details (a copy is included in the LICENSE file that
15 * You should have received a copy of the GNU General Public License version
26 * @summary Check the JDK and JVM version returned by sun.misc.Version
38 VersionInfo jdk = jdkVersionInfo(System.getProperty("java.runtime.version"));
45 System.out.println("JDK version = " + jdk + " " + v1);
47 throw new RuntimeException("Unmatched version: " + jdk + " vs " + v1);
49 VersionInfo jvm = jvmVersionInfo(System.getProperty("java.vm.version"));
56 System.out.println("JVM version = " + jvm + " " + v2);
58 throw new RuntimeException("Unmatched version: " + jvm + " vs " + v2);
100 private static VersionInfo jdkVersionInfo(String version) throws Exception {
101 // valid format of the version string is:
124 Matcher m = p.matcher(version);
135 System.out.printf("newVersionInfo: input=%s output=%s\n", version, vi);
139 private static VersionInfo jvmVersionInfo(String version) throws Exception {
140 // valid format of the version string is:
153 Matcher m = p.matcher(version);
161 System.out.printf("newVersionInfo: input=%s output=%s\n", version, vi);