<legend id='ySn0g'><style id='ySn0g'><dir id='ySn0g'><q id='ySn0g'></q></dir></style></legend>

    <small id='ySn0g'></small><noframes id='ySn0g'>

      <i id='ySn0g'><tr id='ySn0g'><dt id='ySn0g'><q id='ySn0g'><span id='ySn0g'><b id='ySn0g'><form id='ySn0g'><ins id='ySn0g'></ins><ul id='ySn0g'></ul><sub id='ySn0g'></sub></form><legend id='ySn0g'></legend><bdo id='ySn0g'><pre id='ySn0g'><center id='ySn0g'></center></pre></bdo></b><th id='ySn0g'></th></span></q></dt></tr></i><div id='ySn0g'><tfoot id='ySn0g'></tfoot><dl id='ySn0g'><fieldset id='ySn0g'></fieldset></dl></div>
        • <bdo id='ySn0g'></bdo><ul id='ySn0g'></ul>
        <tfoot id='ySn0g'></tfoot>

        如何从程序中找到 JVM 版本?

        时间:2023-08-25
      1. <i id='NRb1j'><tr id='NRb1j'><dt id='NRb1j'><q id='NRb1j'><span id='NRb1j'><b id='NRb1j'><form id='NRb1j'><ins id='NRb1j'></ins><ul id='NRb1j'></ul><sub id='NRb1j'></sub></form><legend id='NRb1j'></legend><bdo id='NRb1j'><pre id='NRb1j'><center id='NRb1j'></center></pre></bdo></b><th id='NRb1j'></th></span></q></dt></tr></i><div id='NRb1j'><tfoot id='NRb1j'></tfoot><dl id='NRb1j'><fieldset id='NRb1j'></fieldset></dl></div>
          <legend id='NRb1j'><style id='NRb1j'><dir id='NRb1j'><q id='NRb1j'></q></dir></style></legend>
          1. <small id='NRb1j'></small><noframes id='NRb1j'>

              <bdo id='NRb1j'></bdo><ul id='NRb1j'></ul>

                    <tbody id='NRb1j'></tbody>
                  <tfoot id='NRb1j'></tfoot>

                • 本文介绍了如何从程序中找到 JVM 版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想编写一个示例 Java 文件,我想在其中了解运行该类的 JVM 版本.有什么办法吗?

                  I want to write a sample Java file in which I want to know the JVM version in which the class is running. Is there a way?

                  推荐答案

                  System.getProperty("java.version") 返回你需要的.

                  如果需要,您也可以使用 JMX:

                  You can also use JMX if you want:

                  ManagementFactory.getRuntimeMXBean().getVmVersion()

                  这篇关于如何从程序中找到 JVM 版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:在运行时设置 JVM 堆大小 下一篇:什么时候执行一个类的静态块?

                  相关文章

                  <legend id='FHhPY'><style id='FHhPY'><dir id='FHhPY'><q id='FHhPY'></q></dir></style></legend>

                  <small id='FHhPY'></small><noframes id='FHhPY'>

                  1. <i id='FHhPY'><tr id='FHhPY'><dt id='FHhPY'><q id='FHhPY'><span id='FHhPY'><b id='FHhPY'><form id='FHhPY'><ins id='FHhPY'></ins><ul id='FHhPY'></ul><sub id='FHhPY'></sub></form><legend id='FHhPY'></legend><bdo id='FHhPY'><pre id='FHhPY'><center id='FHhPY'></center></pre></bdo></b><th id='FHhPY'></th></span></q></dt></tr></i><div id='FHhPY'><tfoot id='FHhPY'></tfoot><dl id='FHhPY'><fieldset id='FHhPY'></fieldset></dl></div>
                  2. <tfoot id='FHhPY'></tfoot>

                        <bdo id='FHhPY'></bdo><ul id='FHhPY'></ul>