<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 中的什么位置?

        时间:2024-08-25

          <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 中的什么位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何让 Eclipse 在 Windows 7 任务栏中表现良好? 下一篇:错误:CreateProcess 错误=216,此版本的 %1

                  相关文章

                  <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>
                        <bdo id='SQn9E'></bdo><ul id='SQn9E'></ul>