java.io.IOException: Cannot run program "env": 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 Apache's JIRA Issue Tracker by Nilay Chheda, 1 year ago
Cannot run program "env": CreateProcess error=2, The system cannot find the file specified
via Oracle Community by 843834, 1 year ago
Cannot run program "E:\XMLprog\javac": CreateProcess error=2, The system cannot find the file specified
via wpthm.com by Unknown author, 2 years ago
Cannot run program "E:\XMLprog\javac": CreateProcess error=2, The system cannot find the file specified
via hivmr.com by Unknown author, 1 year ago
Cannot run program "C:\\javac": CreateProcess error=2, The system cannot find the file specified
via Oracle Community by 843834, 1 year ago
Cannot run program "C:\\javac": CreateProcess error=2, The system cannot find the file specified
via xmlbeans-user by Strong.James, 1 year ago
Cannot run program "C:\xmlbeans-2.4.0\javac": CreateProcess error=2, The system cannot find the file specified
java.io.IOException: Cannot run program "env": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at org.apache.tika.parser.external.ExternalParser.parse(ExternalParser.java:182)
at org.apache.tika.parser.external.ExternalParser.parse(ExternalParser.java:145)
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
at org.apache.tika.parser.ParserDecorator.parse(ParserDecorator.java:177)
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
at org.apache.tika.cli.TikaCLI$OutputType.process(TikaCLI.java:190)
at org.apache.tika.cli.TikaCLI.process(TikaCLI.java:491)
at org.apache.tika.cli.TikaCLI.main(TikaCLI.java:144)

Users with the same issue

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
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

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