如果Windows有多个JRE版本,如何在命令提示符下获取最新的JRE版本

时间:2016-10-21 06:08:30

标签: java windows command-line

我正在尝试使用<Scrollviewer> <Grid Background="Gray"> <Grid.RowDefinitions> <RowDefinition Height="*"></RowDefinition> <RowDefinition Height="*"></RowDefinition> <RowDefinition Height="*"></RowDefinition> </Grid.RowDefinitions> <Grid Grid.Row="0"> <UI:AdControl AutoRefreshIntervalInSeconds="60" ApplicationId="3f83fe91-d6be-434d-a0ae-7351c5a997f1" AdUnitId="10865270" HorizontalAlignment="Center" Height="250" IsAutoRefreshEnabled="True" VerticalAlignment="Center" Margin="5,20,5,5" Width="300"/> </Grid> <Grid Grid.Row="1"> <UI:AdControl AutoRefreshIntervalInSeconds="60" ApplicationId="3f83fe91-d6be-434d-a0ae-7351c5a997f1" AdUnitId="10865270" HorizontalAlignment="Center" Height="250" IsAutoRefreshEnabled="True" VerticalAlignment="Center" Margin="5,10,5,5" Width="300"/> </Grid> <Grid Grid.Row="2"> <UI:AdControl AutoRefreshIntervalInSeconds="60" ApplicationId="3f83fe91-d6be-434d-a0ae-7351c5a997f1" AdUnitId="10865270" HorizontalAlignment="Center" Height="250" IsAutoRefreshEnabled="True" VerticalAlignment="Center" Margin="5,20,5,5" Width="300"/> </Grid> </Grid> </Scrollviewer> 命令在Windows中安装最新的JRE。我在Windows上安装了JRE 1.6和1.8,但我需要获得Windows中安装的最新版本(即使将来它可能会更改为1.8到2.0 *)。任何人都可以帮忙解决这个问题。

2 个答案:

答案 0 :(得分:1)

尝试此批次获取win7

import numpy as np

def nangmean(arr, axis=None):
    arr = np.asarray(arr)
    valids = np.sum(~np.isnan(arr), axis=axis)
    prod = np.nanprod(arr, axis=axis)
    return np.power(prod, 1. / valids)

答案 1 :(得分:0)

java -version:1.8.0_101 -jar jarname.jar 

使用上面的方法在这里调用java你可以给你想要使用的java版本,以防你的路径中有多个。