java.io.IOException

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

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 web20830

  • via Sonatype JIRA by Joe Tom, 11 months ago
    Cannot run program "/usr/java/jre1.8.0_65/bin/java": error=2, No such file or directory
  • via YouTrack by Unknown author, 1 year ago
    Cannot run program "/usr/local/openjdk7/jre/bin/java": error=2, No such file or directory
  • via oracle.com by Unknown author, 1 year ago
    Cannot run program "/usr/lib/jvm/java-8-oracle/bin/java" (in directory "/home/user/.minecraftmod/run"): error=2, No such file or directory
  • Stack trace

    • java.io.IOException: Cannot run program "/usr/java/jre1.8.0_65/bin/java": error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) 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) 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:248) at java.lang.ProcessImpl.start(ProcessImpl.java:134) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ... 36 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

    Once, 7 months ago
    Unknown user
    Once, 7 months ago
    8 times, 10 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    151 more bugmates