<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 版本?

        How to find the JVM version from a program?(如何从程序中找到 JVM 版本?)
      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 版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Bytecode features not available in the Java language(Java 语言中不可用的字节码功能)
                  ClassCastException because of classloaders?(ClassCastException 因为类加载器?)
                  How can I add a Javaagent to a JVM without stopping the JVM?(如何在不停止 JVM 的情况下将 Javaagent 添加到 JVM?)
                  Cannot load 64-bit SWT libraries on 32-bit JVM ( replacing SWT file )(无法在 32 位 JVM 上加载 64 位 SWT 库(替换 SWT 文件))
                  Encourage the JVM to GC rather than grow the heap?(鼓励 JVM 进行 GC 而不是增加堆?)
                  Why a sawtooth shaped graph?(为什么是锯齿形图形?)
                  <legend id='FHhPY'><style id='FHhPY'><dir id='FHhPY'><q id='FHhPY'></q></dir></style></legend>

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

                      <tbody id='FHhPY'></tbody>
                    • <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>
                    • <tfoot id='FHhPY'></tfoot>

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