java.io.IOException: Cannot run program "mvn" (in directory "C:\GitRepo\server\server-side"): CreateProcess error=2, The system cannot find the file specified

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

You might be using the wrong way to add commands to the command line. Try using commandDownloader.add("command");

,
Expert tip

If you're trying to make a splash screen, check this tutorial: https://goo.gl/zQyCYe

Solutions on the web

via Stack Overflow by Shah Rukh K
, 1 year ago
Cannot run program "mvn" (in directory "C:\GitRepo\server\server-side"): CreateProcess error=2, The system cannot find the file specified
via wordpress.com by Unknown author, 1 year ago
Cannot run program “jad” (in directoryC:\.net.sf.jadclipse\1379680857090”): CreateProcess error=2, The system cannot find the file specified
via Stack Overflow by Revathi
, 1 year ago
Cannot run program "jad" (in directory "C:\Documents and Settings\Sai\.net.sf.jadclipse\1321168101468"): CreateProcess error=2, The system cannot find the file specified
via Stack Overflow by Unknown author, 2 years ago
Cannot run program "C:\Program Files\NetBeans 8.0.2\extide\ant\bin\ant.bat"(in directory "C:\Users\Elcot\Documents\NetBeansProjects\WordProcessor\build\installer\nbi_all\ext\infra\build\engine\build\ext\engine") : CreateProcess error=2, The system cannot find the file specified.
via mkyong.com by Unknown author, 1 year ago
Cannot run program “host”: CreateProcess error=2, The system cannot find the file specified
via Google Groups by Álvaro Vargas Quezada, 3 months ago
Cannot run program "http://localhost:80/xpdf/pdftotext": CreateProcess error=2, The system cannot find the file specified
java.io.IOException: Cannot run program "mvn" (in directory "C:\GitRepo\server\server-side"): CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(ProcessImpl.java:385)
at java.lang.ProcessImpl.start(ProcessImpl.java:136)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
at java.lang.Runtime.exec(Runtime.java:617)
at org.intellij.sonar.analysis.RunLocalAnalysisScriptTask.execute(RunLocalAnalysisScriptTask.java:130)
at org.intellij.sonar.analysis.RunLocalAnalysisScriptTask.run(RunLocalAnalysisScriptTask.java:108)
at org.intellij.sonar.analysis.SonarQubeInspectionContext.performPreRunActivities(SonarQubeInspectionContext.java:165)
at com.intellij.codeInspection.ex.GlobalInspectionContextBase.initializeTools(GlobalInspectionContextBase.java:345)
at com.intellij.codeInspection.ex.GlobalInspectionContextImpl.runTools(GlobalInspectionContextImpl.java:317)
at com.intellij.codeInspection.ex.GlobalInspectionContextBase$6.run(GlobalInspectionContextBase.java:288)
at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
at com.intellij.codeInspection.ex.GlobalInspectionContextBase.performInspectionsWithProgress(GlobalInspectionContextBase.java:285)
at com.intellij.codeInspection.ex.GlobalInspectionContextBase$4.run(GlobalInspectionContextBase.java:246)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:471)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178)
at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:171)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$8.run(ProgressManagerImpl.java:380)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
151 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.