java.io.IOException: Cannot run program "/Users/dev/android-sdk-macosx/tools/emulator-arm": error=2, No such file or directory

Jenkins JIRA | Wesley Archbell | 2 years ago
  1. 0

    [android] Using Android SDK: /Users/dev/android-sdk-macosx $ /Users/dev/android-sdk-macosx/platform-tools/adb start-server * daemon not running. starting it now on port 5585 * * daemon started successfully * $ /Users/dev/android-sdk-macosx/platform-tools/adb start-server $ /Users/dev/android-sdk-macosx/tools/emulator-arm -snapshot-list -no-window -avd ARM_Emulator FATAL: Cannot run program "/Users/dev/android-sdk-macosx/tools/emulator-arm": error=2, No such file or directory java.io.IOException: Cannot run program "/Users/dev/android-sdk-macosx/tools/emulator-arm": error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:803) at hudson.Launcher$ProcStarter.start(Launcher.java:381) at hudson.Launcher$ProcStarter.join(Launcher.java:388) at hudson.plugins.android_emulator.util.Utils.runAndroidTool(Utils.java:425) at hudson.plugins.android_emulator.util.Utils.runAndroidTool(Utils.java:403) at hudson.plugins.android_emulator.EmulatorConfig.hasExistingSnapshot(EmulatorConfig.java:357) at hudson.plugins.android_emulator.AndroidEmulator.doSetUp(AndroidEmulator.java:312) at hudson.plugins.android_emulator.AndroidEmulator.setUp(AndroidEmulator.java:263) at hudson.model.Build$BuildExecution.doRun(Build.java:154) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536) at hudson.model.Run.execute(Run.java:1718) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) 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:184) at java.lang.ProcessImpl.start(ProcessImpl.java:130) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028) ... 16 more

    Jenkins JIRA | 2 years ago | Wesley Archbell
    java.io.IOException: Cannot run program "/Users/dev/android-sdk-macosx/tools/emulator-arm": error=2, No such file or directory
  2. 0

    [android] Using Android SDK: /Users/dev/android-sdk-macosx $ /Users/dev/android-sdk-macosx/platform-tools/adb start-server * daemon not running. starting it now on port 5585 * * daemon started successfully * $ /Users/dev/android-sdk-macosx/platform-tools/adb start-server $ /Users/dev/android-sdk-macosx/tools/emulator-arm -snapshot-list -no-window -avd ARM_Emulator FATAL: Cannot run program "/Users/dev/android-sdk-macosx/tools/emulator-arm": error=2, No such file or directory java.io.IOException: Cannot run program "/Users/dev/android-sdk-macosx/tools/emulator-arm": error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:803) at hudson.Launcher$ProcStarter.start(Launcher.java:381) at hudson.Launcher$ProcStarter.join(Launcher.java:388) at hudson.plugins.android_emulator.util.Utils.runAndroidTool(Utils.java:425) at hudson.plugins.android_emulator.util.Utils.runAndroidTool(Utils.java:403) at hudson.plugins.android_emulator.EmulatorConfig.hasExistingSnapshot(EmulatorConfig.java:357) at hudson.plugins.android_emulator.AndroidEmulator.doSetUp(AndroidEmulator.java:312) at hudson.plugins.android_emulator.AndroidEmulator.setUp(AndroidEmulator.java:263) at hudson.model.Build$BuildExecution.doRun(Build.java:154) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536) at hudson.model.Run.execute(Run.java:1718) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) 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:184) at java.lang.ProcessImpl.start(ProcessImpl.java:130) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028) ... 16 more

    Jenkins JIRA | 2 years ago | Wesley Archbell
    java.io.IOException: Cannot run program "/Users/dev/android-sdk-macosx/tools/emulator-arm": error=2, No such file or directory
  3. 0

    Jenkins job using Gradle can't find executable

    Stack Overflow | 2 years ago | ShatyUT
    java.io.IOException: Cannot run program "gradle" (in directory "/var/lib/jenkins/workspace/Journeyman-Android"): error=2, No such file or directory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Cannot run program "gradle" in Jenkins

    Stack Overflow | 5 years ago | Andreas Köberle
    java.io.IOException: Cannot run program "gradle" (in directory "/Users/Shared/Jenkins/Home/jobs/test/workspace"): error=2, No such file or directory
  6. 0

    [JENKINS-15406] When using gradlew, root build script field is not used to locate gradlew - Jenkins JIRA

    jenkins-ci.org | 7 months ago
    java.io.IOException: Cannot run program (in directory ): error=2, No such file or directory

  1. eti22 1 times, last 1 month ago
  2. asdasd 24 times, last 3 months ago
  3. rexgreenza 8 times, last 3 months ago
  4. Benj-AD 1 times, last 4 months ago
  5. Akshay 4 times, last 6 months ago
95 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.IOException

    error=2, No such file or directory

    at java.lang.UNIXProcess.forkAndExec()
  2. Java RT
    ProcessBuilder.start
    1. java.lang.UNIXProcess.forkAndExec(Native Method)
    2. java.lang.UNIXProcess.<init>(UNIXProcess.java:184)
    3. java.lang.ProcessImpl.start(ProcessImpl.java:130)
    4. java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
    4 frames
  3. Hudson
    Launcher$ProcStarter.join
    1. hudson.Proc$LocalProc.<init>(Proc.java:244)
    2. hudson.Proc$LocalProc.<init>(Proc.java:216)
    3. hudson.Launcher$LocalLauncher.launch(Launcher.java:803)
    4. hudson.Launcher$ProcStarter.start(Launcher.java:381)
    5. hudson.Launcher$ProcStarter.join(Launcher.java:388)
    5 frames
  4. hudson.plugins.android_emulator
    AndroidEmulator.setUp
    1. hudson.plugins.android_emulator.util.Utils.runAndroidTool(Utils.java:425)
    2. hudson.plugins.android_emulator.util.Utils.runAndroidTool(Utils.java:403)
    3. hudson.plugins.android_emulator.EmulatorConfig.hasExistingSnapshot(EmulatorConfig.java:357)
    4. hudson.plugins.android_emulator.AndroidEmulator.doSetUp(AndroidEmulator.java:312)
    5. hudson.plugins.android_emulator.AndroidEmulator.setUp(AndroidEmulator.java:263)
    5 frames
  5. Hudson
    Executor.run
    1. hudson.model.Build$BuildExecution.doRun(Build.java:154)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
    3. hudson.model.Run.execute(Run.java:1718)
    4. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    5. hudson.model.ResourceController.execute(ResourceController.java:89)
    6. hudson.model.Executor.run(Executor.java:240)
    6 frames