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

    1. <legend id='bWcrB'><style id='bWcrB'><dir id='bWcrB'><q id='bWcrB'></q></dir></style></legend>

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

          <bdo id='bWcrB'></bdo><ul id='bWcrB'></ul>
        <tfoot id='bWcrB'></tfoot>

      1. Java:类路径 JVM 上的多个资源中的哪一个?

        Java: Which of multiple resources on classpath JVM takes?(Java:类路径 JVM 上的多个资源中的哪一个?)

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

            • <bdo id='AcSHz'></bdo><ul id='AcSHz'></ul>
                • <tfoot id='AcSHz'></tfoot>

                    <tbody id='AcSHz'></tbody>

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

                  本文介绍了Java:类路径 JVM 上的多个资源中的哪一个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如果我在类路径上有多个同名文件(例如,我有多个 .jarlog4j.properties),JVM 遵循什么规则来选择一个?

                  If I have multiple files of the same name on classpath (e.g. I have multiple .jar with log4j.properties), what are the rules JVM follows to chose one?

                  推荐答案

                  使用-classpath选项指定资源(即通常是jar文件)的顺序来指定.类路径上较早"的资源优先于在它们之后指定的资源.这也可以在您的应用程序的清单文件中设置,然后您不需要提供 -classpath 选项.您可能需要查看这些文章,了解如何使用清单文件.

                  It is specified by the order in which the resources (i.e. usually jar files) are specified using -classpath option. Resources 'earlier' on the classpath take precedence over resources that are specified after them. This can be also set in the manifest file of your application and then you don't need to provide -classpath option. You may want to check these articles on how to work with manifest files.

                  可以在这里,JAR-class-path Classes部分描述了JAR文件搜索的逻辑.

                  The exhaustive description of "how classes are found" can be found here, where the section on JAR-class-path Classes describes the logic of JAR-files searching.

                  这篇关于Java:类路径 JVM 上的多个资源中的哪一个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                  How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                  Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                  Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                  How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                  How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)

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

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

                      1. <tfoot id='PFJo0'></tfoot>
                          <tbody id='PFJo0'></tbody>
                        • <bdo id='PFJo0'></bdo><ul id='PFJo0'></ul>