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

Nashorn test fails on Windows (not Cygwin) due to space in path

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 9
    • 8u60, 9
    • core-libs
    • None

      The test JDK-8050964.js fails on plain Windows (no Cygwin installation) if %JAVA_HOME% contains a space. In particular, the following line in the test fails:

      `${jdepsPath} -s -P ${nashornJar.absolutePath}`

      The jdepsPath variable expands to a string containing spaces in this case. With %JAVA_HOME% set to C:\Program Files\Java\jdk1.8.0_45, the error is that the program "C:\Program" cannot be run.

            mhaupt Michael Haupt
            mhaupt Michael Haupt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: