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

jdeps is not PATH on Mac, results in ant clean test failure on Mac

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b26
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        ant clean test

        fails with

        runTest
        "java.lang.RuntimeException: java.io.IOException: Cannot run program "jdeps" (in directory "/Users/marcus/src/nashorn-jdk9/make"): error=2, No such file or directory
        at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:380)
        at jdk.nashorn.tools.Shell.apply(Shell.java:391)
        at jdk.nashorn.tools.Shell.runScripts(Shell.java:320)
        at jdk.nashorn.tools.Shell.run(Shell.java:169)
        at jdk.nashorn.tools.Shell.main(Shell.java:133)
        at jdk.nashorn.internal.test.framework.SeparateContextEvaluator.run(SeparateContextEvaluator.java:38)
        at jdk.nashorn.internal.test.framework.AbstractScriptRunnable.evaluateScript(AbstractScriptRunnable.java:200)
        at jdk.nashorn.internal.test.framework.ScriptRunnable.executeInThisProcess(ScriptRunnable.java:146)
        at jdk.nashorn.internal.test.framework.ScriptRunnable.execute(ScriptRunnable.java:85)
        at jdk.nashorn.internal.test.framework.AbstractScriptRunnable.runTest(AbstractScriptRunnable.java:132)
        at jdk.nashorn.internal.test.framework.ScriptRunnable.runTest(ScriptRunnable.java:74)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:484)
        at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
        at org.testng.internal.Invoker.invokeMethod(Invoker.java:715)
        at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:907)
        at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1237)
        at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
        at org.testng.TestRunner.privateRun(TestRunner.java:767)
        at org.testng.TestRunner.run(TestRunner.java:617)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
        at org.testng.SuiteRunner.run(SuiteRunner.java:240)
        at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:51)
        at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:85)
        at org.testng.TestNG.runSuitesSequentially(TestNG.java:1197)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:1122)
        at org.testng.TestNG.run(TestNG.java:1030)
        at org.testng.TestNG.privateMain(TestNG.java:1337)
        at org.testng.TestNG.main(TestNG.java:1306)
        Caused by: java.io.IOException: Cannot run program "jdeps" (in directory "/Users/marcus/src/nashorn-jdk9/make"): error=2, No such file or directory
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1044)
        at jdk.nashorn.internal.runtime.ScriptingFunctions.exec(ScriptingFunctions.java:166)
        at jdk.nashorn.internal.scripts.Script$Recompilation$75$JDK_8050964$cu2$restOf.:program(test/script/nosecurity/JDK-8050964.js:50)
        at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:636)
        at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:567)
        at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:222)
        at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:376)
        ... 33 more
        Caused by: java.io.IOException: error=2, No such file or directory
        at java.lang.UNIXProcess.forkAndExec(Native Method)
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:249)
        at java.lang.ProcessImpl.start(ProcessImpl.java:134)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1023)
        ... 39 more


        in the nosecurity test

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                sundar Sundararajan Athijegannathan
                Reporter:
                lagergren Marcus Lagergren
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: