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

fxpackager test failure in sandbox

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u40
    • Fix Version/s: 8u40
    • Component/s: deploy
    • Labels:
      None

      Description


      gradle :fxpackager:test
      is failing for me in CLItest because it can't find the JRE to pass in.

      baseDir is null at MacAppBundler.java:890

      The following patch caused the problem to go away for me. But, why is there an assumption that PACKAGER_JRE_ROOT is set in the environment, and why can't I find other references to it ?

      diff -r a0893a94817d modules/fxpackager/src/test/java/com/oracle/tools/packager/CLITest.java
      --- a/modules/fxpackager/src/test/java/com/oracle/tools/packager/CLITest.java Fri Nov 14 10:23:38 2014 -0500
      +++ b/modules/fxpackager/src/test/java/com/oracle/tools/packager/CLITest.java Fri Nov 14 12:45:38 2014 -0500
      @@ -64,8 +64,11 @@
               String packagerJdkRoot = System.getenv("PACKAGER_JDK_ROOT");
               String packagerJreRoot = System.getenv("PACKAGER_JRE_ROOT");
       
      - runtimeJdk = System.getenv("PACKAGER_JDK_ROOT");
      - runtimeJre = System.getenv("PACKAGER_JRE_ROOT");
      + runtimeJdk = System.getenv("JAVA_HOME");
      + runtimeJre = System.getenv("JAVA_HOME");
      +
      + System.err.println("DAVE PACKAGER_JDK_ROOT = "+runtimeJdk);
      + System.err.println("DAVE PACKAGER_JRE_ROOT = "+runtimeJre);
       
           }
       

        Attachments

          Activity

            People

            Assignee:
            shemnon Danno Ferrin (Inactive)
            Reporter:
            ddhill David Hill (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: