Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6727315

Java Control Panel "Keep temporary files ..." not in sync with property "deployment.cache.enabled"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 6u6
    • deploy
    • None

      The following behavior is reproducible on jre 1.6.0_06:

      1. Property "deployment.cache.enabled"
      --------------------------------------
      Look at the "deployment.properties" file in
      C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment

      The property "deployment.cache.enabled" is not set:

      C:> findstr cache deployment.properties
      deployment.javaws.splash.index=C\:\\Documents and Settings\\Administrator\\Appli
      cation Data\\Sun\\Java\\Deployment\\cache\\6.0\\splash\\splash.xml
      deployment.javaws.splash.cache=C\:\\Documents and Settings\\Administrator\\Appli
      cation Data\\Sun\\Java\\Deployment\\javaws\\cache\\splashes\\splash.xml

      2. Uncheck "Keep temporary files on my computer"
      ------------------------------------------------
      Open Windows Control Panel -> Java Control Panel -> General -> Settings
      and uncheck checkbox "Keep temporary files on my computer".
      Press OK and close the "Settings" dialog and press OK to close the
      Java Control Panel.

      3. Property "deployment.cache.enabled=false"
      --------------------------------------------
      Now look at the "deployment.properties" file in
      C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment

       The property "deployment.cache.enabled" is set to value "false":

      C:> findstr cache deployment.properties
      deployment.cache.enabled=false
      deployment.javaws.splash.index=C\:\\Documents and Settings\\Administrator\\Appli
      cation Data\\Sun\\Java\\Deployment\\cache\\6.0\\splash\\splash.xml
      deployment.javaws.splash.cache=C\:\\Documents and Settings\\Administrator\\Appli
      cation Data\\Sun\\Java\\Deployment\\javaws\\cache\\splashes\\splash.xml

      4. Reopen Java Control Panel -> Settings dialog
      -----------------------------------------------
       The checkbox "Keep temporary files on my computer" is now checked again, which
       does not reflect the state of the property.

      5. Workaround
      -------------
       Unchecking and rechecking "Keep temporary files on my computer" does help.
       The property is removed from the "deployment.properties" file after the
       Java Control Panel is closed.

      C:> findstr cache deployment.properties
      deployment.javaws.splash.index=C\:\\Documents and Settings\\Administrator\\Appli
      cation Data\\Sun\\Java\\Deployment\\cache\\6.0\\splash\\splash.xml
      deployment.javaws.splash.cache=C\:\\Documents and Settings\\Administrator\\Appli
      cation Data\\Sun\\Java\\Deployment\\javaws\\cache\\splashes\\splash.xml

            herrick Andy Herrick (Inactive)
            thlenz Thomas Lenz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: