How to check JRE version prior to launch?

前端 未结 13 2230
天命终不由人
天命终不由人 2020-12-01 11:08

What\'s the best way to determine if the version of the JRE installed on a machine is high enough for the application which the user wants to run? Is there a way of doing it

相关标签:
13条回答
  • 2020-12-01 12:12

    All those above is too damn complicated. Just go:

    Properties props = System.getProperties()
    props.list(System.out)
    

    And you will see everything about your JVM, JRE, JDK and staff. Or get a specific value by using:

    //full list of possible props you can see if u run code above
    String props = System.getProperty(prop)
    
    0 讨论(0)
提交回复
热议问题