package net.ftb.util.winreg; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import org.junit.Test; public class JavaVersionTest { @Test public void javaVersion () { return; } /* * windows * C:\Users\jikuja>"c:\Program Files (x86)\Java\jre1.8.0_25\bin\java.exe" -version * java version "1.8.0_25" * Java(TM) SE Runtime Environment (build 1.8.0_25-b18) * Java HotSpot(TM) Client VM (build 25.25-b02, mixed mode) * * C:\Users\jikuja>"c:\Program Files\Java\jre1.8.0_25\bin\java.exe" -version * java version "1.8.0_25" * Java(TM) SE Runtime Environment (build 1.8.0_25-b18) * Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode) * * C:\Users\jikuja>"c:\Program Files\Java\jre7\bin\java.exe" -version * java version "1.7.0_55" * Java(TM) SE Runtime Environment (build 1.7.0_55-b13) * Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode) * * C:\Users\jikuja>"c:\Program Files\Java\jdk1.7.0_55\bin\java.exe" -version * java version "1.7.0_55" * Java(TM) SE Runtime Environment (build 1.7.0_55-b13) * Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode) * */ /* * from openjdk packs from jessie * java-6-openjdk-amd64/bin/java * java version "1.6.0_31" * OpenJDK Runtime Environment (IcedTea6 1.13.3) (6b31-1.13.3-1) * OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode) * * java-7-openjdk-amd64/bin/java * java version "1.7.0_65" * OpenJDK Runtime Environment (IcedTea 2.5.3) (7u71-2.5.3-1) * OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode) * * java-7-openjdk-i386/bin/java * java version "1.7.0_65" * OpenJDK Runtime Environment (IcedTea 2.5.3) (7u71-2.5.3-1) * OpenJDK Server VM (build 24.65-b04, mixed mode) */ /* * tar.gzs from oracle * jre1.8.0_20/bin/java * java version "1.8.0_20" * Java(TM) SE Runtime Environment (build 1.8.0_20-b26) * Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode) * * jre1.8.0_40/bin/java * java version "1.8.0_40-ea" * Java(TM) SE Runtime Environment (build 1.8.0_40-ea-b11) * Java HotSpot(TM) 64-Bit Server VM (build 25.40-b15, mixed mode) * * jdk1.9.0/bin/java * java version "1.9.0-ea" * Java(TM) SE Runtime Environment (build 1.9.0-ea-b34) * Java HotSpot(TM) 64-Bit Server VM (build 1.9.0-ea-b34, mixed mode) * */ }