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

Single Binary function does not work when running SVR4 package of JRE on Solaris.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 8
    • 8
    • install
    • None
    • Tested with JRE8 b81 on Solaris 11.

    • b112
    • generic
    • solaris_11
    • Verified

      This is Andy at Evergreen.

      I tested the single binary function on Solaris with JRE8 b81, but it cannot work after installed JRE.

      In Solaris installer, there is a “javasettings” program which performs the single binary functions.
      When we running the SVR4 installer on Solaris, the installer will run this program.
      But this program cannot be run correctly in current Solaris installer.


      Steps:
      1. Get the SVR4 package of JRE. We can get it by uncompress the jdk-8-ea-solaris-i586.tar.Z bundle of JRE8 b81. There should be a SUNWj8rt folder.

      2. Check the files in SUNWj8rt/install folder.

      Problem1:
      I found that the following scripts do not have execute permission.
      postinstall
      postremove
      preremove
      When running the installer, the postinstall script need to be run, and the javasettings program will be run in postinstall script.
      But the postinstall script does not have execute permission, so it cannot be execute when installing.

      3. Check the content of postinstall script.

      Problem2:
      There is an error in this script.
      Line31: PWD="dirname '$0'"
      This line is not right, it should be
      PWD=`dirname “$0”`

      Because of this problem, the following command at line 52 cannot be run.
      # Execute the single binary executable
      ${PWD}/javasettings

      So the javasettings program cannot be run correctly on Solaris.

            dmalav Dinesh Malav (Inactive)
            ana Alice Na (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: