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

Installer should check user's disk space correctly during installation.

XMLWordPrintable

    • hopper
    • x86
    • windows_2000
    • Verified

      During the installation process, almost all the application will have one step
      to let user choose installation destination and check disk space. Microsoft
      products, netscape, our start office, ... you name it.

      The only exception is our JRE/JDK installation. We should have such step.
      The importance of this does not need to elaborate. When installing JDK,
      the JRE will always be installed in default location. Considering the size
      of it, to check the space before installing should be a must. Otherwise,
      user's JRE environment may be corrupted.


      ###@###.### 2002-03-11

      This bug was created for 2 problems with the current disk space check algorithm.

      1. One was a problem with the Makefile scripting when pack was added to the installer. The problem was that we never crunched jsse.jar before, but we now pack jsse.jar. In a NAWK statement, the additional jsse.jar was piped in, but not taken care of in the nawk statement. Therefore, the size for rt.jar was completely missing, throwing the diskspace check way off for the jar files size.

      2. Kumar noticed that there is a small window of diskspace (5MB) where the disk space check will pass, but there won't be enough space. This is because we only calculate the differences with the .pack files and the .jar files. When we uncrunch rt.pack for instance, there is a point in time where rt.jar and rt.pack both exist. Then rt.pack gets deleted. It's this window of time that we are not accounting for.
      ###@###.### 2002-03-12

            billyh William Harnois
            nwangsunw Nathan Wang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: