java.io.IOException: Cannot run program "/usr/java/jre1.8.0_65/bin/java": error=2, No such file or directory

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

,

Provide a working directory instead of pointing it to a file or an empty directory in process builder.

,
Expert tip

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

Solutions on the web

via Sonatype JIRA by Joe Tom, 1 year ago
Cannot run program "/usr/java/jre1.8.0_65/bin/java": error=2, No such file or directory
via Stack Overflow by Dinesh J
, 10 months ago
Cannot run program "/etc/spark/conf.cloudera.CD-SPARK_ON_YARN-brkvSOzr/yarn-conf/topology.py" (in directory "/data4/yarn/nm/usercache/ppmingusrdev/appcache/application_14823231312_123/container_14866508534534_144_01_000004"): error=2, No such file or directory
via Google Groups by Lynn Lin, 1 month ago
Cannot run program "docker": error=2, No such file or directory
via GitHub by akireev
, 2 years ago
Cannot run program "/usr/lib64/erlang/bin/erlc" (in directory "<CUT>"): error=2, Нет такого файла или каталога
via jwildfire.org by Unknown author, 1 year ago
Cannot run program ""/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java"": error=2, No such file or directory
via GitHub by ranjanin08
, 2 years ago
Cannot run program "/usr/bin/hadoop" (in directory "/private/tmp/hadoop/test-baf1c685-36a4-4e26-9da1-0737b0978605/mapred/user"): error=2, No such file or directory
java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:248)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at com.install4j.runtime.installer.platform.JVMLocator.getVersionOutput(JVMLocator.java:163)
at com.install4j.runtime.installer.platform.JVMLocator.checkJVMLocation(JVMLocator.java:138)
at com.install4j.runtime.installer.platform.unix.UnixJVMLocator.searchRootLocation(UnixJVMLocator.java:46)
at com.install4j.runtime.installer.platform.unix.UnixJVMLocator.getJVMLocations(UnixJVMLocator.java:30)
at com.install4j.runtime.installer.platform.JVMLocator.getJVMLocations(JVMLocator.java:24)
at com.install4j.runtime.installer.helper.apiimpl.JVMSelectorImpl.getJVMLocations(JVMSelectorImpl.java:30)
at com.install4j.api.JVMSelector.getJVMLocations(JVMSelector.java:42)
at com.sonatype.nexus.installer.JvmHelper.detect(JvmHelper.java:83)
at com.install4j.script.I4jScript_Internal_164.eval(I4jScript_Internal_164.java:20)
at com.install4j.script.I4jScript_Internal_164.evaluate(I4jScript_Internal_164.java:24)
at com.install4j.runtime.installer.helper.Script.evaluate(Script.java:29)
at com.install4j.runtime.installer.ContextImpl.runScript(ContextImpl.java:181)
at com.install4j.runtime.installer.ContextImpl.runScript(ContextImpl.java:176)
at com.install4j.runtime.beans.actions.control.RunScriptAction.execute(RunScriptAction.java:34)
at com.install4j.runtime.beans.actions.SystemInstallOrUninstallAction.install(SystemInstallOrUninstallAction.java:23)
at com.install4j.runtime.installer.InstallerContextImpl$2.fetchValue(InstallerContextImpl.java:170)
at com.install4j.runtime.installer.InstallerContextImpl$2.fetchValue(InstallerContextImpl.java:167)
at com.install4j.runtime.installer.helper.comm.actions.FetchObjectAction.execute(FetchObjectAction.java:14)
at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionDirect(HelperCommunication.java:266)
at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionInt(HelperCommunication.java:241)
at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionChecked(HelperCommunication.java:179)
at com.install4j.runtime.installer.helper.comm.HelperCommunication.fetchObjectChecked(HelperCommunication.java:162)
at com.install4j.runtime.installer.InstallerContextImpl.performActionIntStatic(InstallerContextImpl.java:167)
at com.install4j.runtime.installer.InstallerContextImpl.performActionInt(InstallerContextImpl.java:155)
at com.install4j.runtime.installer.ContextImpl.performAction(ContextImpl.java:1058)
at com.install4j.runtime.installer.controller.Controller.executeActions(Controller.java:318)
at com.install4j.runtime.installer.controller.Controller.handleCommand(Controller.java:170)
at com.install4j.runtime.installer.controller.Controller.start(Controller.java:91)
at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:41)
at com.install4j.runtime.installer.Installer.main(Installer.java:28)
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:497)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:62)
at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)

Users with the same issue

2 times, 1 month ago
Once, 1 month ago
Once, 2 months ago
15 times, 3 months ago
6 times, 3 months ago

Write tip

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