java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.6.0_06\jre\bin\java.exe" (in directory "C:\Documents and Settings\admin\My Documents\NetBeansProjects\KnockKnockClient"): CreateProcess error=5, Access is denied

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

Solutions on the web

via Oracle Community by 843790, 1 year ago
Cannot run program "C:\Program Files\Java\jdk1.6.0_06\jre\bin\java.exe" (in directory "C:\Documents and Settings\admin\My Documents\NetBeansProjects\KnockKnockClient"): CreateProcess error=5, Access is denied
via netbeans.org by Unknown author, 1 year ago
Cannot run program "C:\Program Files\Java\jdk1.6.0_06\jre\bin\java.exe" (in directory "C:\Documents and Settings\admin\My Documents\NetBeansProjects\KnockKnockClient"): CreateProcess error=5, Access is denied
via openbravo by gcotton
, 1 year ago
Cannot run program "$\{env.JAVA\_HOME\}/bin/java" (in directory "/opt/OpenbravoERP/AppsOpenbravo/src-wad"): java.io.IOException: error=2, No such file or directory
via openbravo by michel_lombart
, 1 year ago
Cannot run program "$\{env.JAVA\_HOME\}/bin/java" (in directory "/opt/OpenbravoERP/AppsOpenbravo/src-wad"): java.io.IOException: error=2, No such file or directory
via openbravo by acballantine
, 1 year ago
Cannot run program "$\{env.JAVA\_HOME\}/bin/java" (in directory "/home/aballantine/eclipse-workspaces/openbravo/openbravo/setup"): java.io.IOException: error=2, No such file or directory
via openbravo by erpnedir
, 1 year ago
CreateProcess: $\{env.JAVA\_HOME\}\bin\java -Xmx512M -classpath C:\OpenbravoERP\AppsOpenbravo\build\classes\src;C:\OpenbravoERP\AppsOpenbravo\lib\activation.jar;C:\OpenbravoERP\AppsOpenbravo\lib\avalon-framework-4.1.5.jar;C:\OpenbravoERP
java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.6.0_06\jre\bin\java.exe" (in directory "C:\Documents and Settings\admin\My Documents\NetBeansProjects\KnockKnockClient"): CreateProcess error=5, Access is denied
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
at java.lang.Runtime.exec(Runtime.java:593)
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.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:828)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:445)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:459)
at org.apache.tools.ant.taskdefs.Java.fork(Java.java:767)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:194)
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
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:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
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:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:391)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
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:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)

Users with the same issue

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

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