<small id='2piZb'></small><noframes id='2piZb'>

<i id='2piZb'><tr id='2piZb'><dt id='2piZb'><q id='2piZb'><span id='2piZb'><b id='2piZb'><form id='2piZb'><ins id='2piZb'></ins><ul id='2piZb'></ul><sub id='2piZb'></sub></form><legend id='2piZb'></legend><bdo id='2piZb'><pre id='2piZb'><center id='2piZb'></center></pre></bdo></b><th id='2piZb'></th></span></q></dt></tr></i><div id='2piZb'><tfoot id='2piZb'></tfoot><dl id='2piZb'><fieldset id='2piZb'></fieldset></dl></div>
      • <bdo id='2piZb'></bdo><ul id='2piZb'></ul>
    1. <tfoot id='2piZb'></tfoot>
        <legend id='2piZb'><style id='2piZb'><dir id='2piZb'><q id='2piZb'></q></dir></style></legend>
      1. Java 首选项存储在 Windows 7 中的什么位置?

        Where are the Java preferences stored in Windows 7?(Java 首选项存储在 Windows 7 中的什么位置?)

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

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

                <tbody id='xJCur'></tbody>
              <legend id='xJCur'><style id='xJCur'><dir id='xJCur'><q id='xJCur'></q></dir></style></legend>
              • <bdo id='xJCur'></bdo><ul id='xJCur'></ul>

                  本文介绍了Java 首选项存储在 Windows 7 中的什么位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我们在某些应用程序中使用 Java 首选项,但并没有真正注意到这一点,因为进行调用的实用程序相当陈旧,并且是在 Windows XP 时代编写的.但似乎 Java 首选项不再存储在 Windows 7 的注册表中 - 或者它们存储在不同的地方.

                  We use the Java preferences in some of our apps and haven't really noticed this since the utility that makes the calls is fairly old and was written in Windows XP days. But it seems the Java preferences are no longer stored in the registry in Windows 7 - or they are stored somewhere different.

                  我期待它出现在:

                  HKEY_LOCAL_MACHINESOFTWAREJavaSoftPrefs

                  但我没有看到它.

                  让它更奇怪的是,当我运行这个应用程序时:

                  What makes it wierder, is that when I run this app:

                  public static void main( final String[] args ) throws BackingStoreException {
                  
                      Preferences systemRoot = Preferences.systemRoot();
                      Preferences preferences = systemRoot.node( "com/mycompany/settings" );
                  
                      systemRoot.put( "foo", "bar" );
                      systemRoot.put( "baz", "lolz" );
                      System.out.println( "-------------------------------" );
                  
                      String[] keys = preferences.keys();
                      for( String key : keys ) {
                          System.out.println( key );
                      }
                  
                      System.out.println( "-------------------------------" );
                  
                      keys = systemRoot.keys();
                      for( String key : keys ) {
                          System.out.println( key );
                      }
                  }
                  

                  它实际上会写入(我可以注释掉并再次运行它并且它可以工作)但我没有在注册表中看到新键.

                  It actually writes (I can comment the put out and run it again and it works) but I don't see the new keys in the registry.

                  另外,我似乎无法在任何地方看到此文档.提前致谢.

                  Also, I can't seem to see this documented anywhere. Thanks in advance.

                  EDIT #1 这很重要的唯一原因是设置的变化取决于它运行的环境.话虽如此,通过手动插入注册表项然后进行一些检查来模拟该环境通常很有用.

                  EDIT #1 The only reason this matters is that the setting changes dependent upon which environment it is ran. This being said, it is often useful to simulate that environment by inserting the registry keys manually and then doing some checking.

                  我以管理员身份运行,但我没有在注册表中看到我期望的键.

                  I was running as admin, yet I did not see the keys in the registry where I expected them to be.

                  推荐答案

                  它们在当前用户下:HKEY_CURRENT_USERSoftwareJavaSoftPrefs

                  这篇关于Java 首选项存储在 Windows 7 中的什么位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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 中的默认语言环境设置以使其保持一致?)

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

                      <legend id='SQn9E'><style id='SQn9E'><dir id='SQn9E'><q id='SQn9E'></q></dir></style></legend>
                      <tfoot id='SQn9E'></tfoot>

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