org.sonar.plugins.php.core.PhpPluginExecutionException

java.io.IOException: Cannot run program "phpmd.bat": CreateProcess error=2, The system cannot find the file specified

Samebug tips1

This is a bug in some versions of the Arduino IDE. Try updating to the version 1.6.12 or further.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web6

  • via Jenkins JIRA by Amit Agarwal, 1 year ago
    java.io.IOException: Cannot run program "phpmd.bat": CreateProcess error=2, The system cannot find the file specified
  • via Jenkins JIRA by Amit Agarwal, 1 year ago
    java.io.IOException: Cannot run program "phpmd.bat": CreateProcess error=2, The system cannot find the file specified
  • java.io.IOException: Cannot run program "phpmd.bat": CreateProcess error=2, The system cannot find the file specified
  • Stack trace

    • org.sonar.plugins.php.core.PhpPluginExecutionException: java.io.IOException: Cannot run program "phpmd.bat": CreateProcess error=2, The system cannot find the file specified at org.sonar.plugins.php.core.AbstractPhpExecutor.execute(AbstractPhpExecutor.java:125) at org.sonar.plugins.php.pmd.PhpmdSensor.analyse(PhpmdSensor.java:74) at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64) at org.sonar.batch.phases.Phases.execute(Phases.java:93) at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143) at org.sonar.batch.bootstrap.Module.start(Module.java:89) at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110) at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:100) at org.sonar.batch.bootstrap.Module.start(Module.java:89) at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:96) at org.sonar.batch.bootstrap.Module.start(Module.java:89) at org.sonar.batch.Batch.execute(Batch.java:74) at org.sonar.ant.Launcher.executeBatch(Launcher.java:210) at org.sonar.ant.Launcher.execute(Launcher.java:66) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.sonar.ant.SonarTask.delegateExecution(SonarTask.java:205) at org.sonar.ant.SonarTask.execute(SonarTask.java:189) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at org.apache.tools.ant.Project.executeTarget(Project.java:1368) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at org.apache.tools.ant.Main.runBuild(Main.java:809) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) Caused by: java.io.IOException: Cannot run program "phpmd.bat": CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at org.sonar.plugins.php.core.AbstractPhpExecutor.execute(AbstractPhpExecutor.java:111) ... 36 more Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(ProcessImpl.java:81) at java.lang.ProcessImpl.start(ProcessImpl.java:30) at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) ... 37 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 6 months ago
    Unknown user
    Once, 9 months ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 11 months ago
    161 more bugmates