Issue
I recently installed Helios on my windows 7 64 bit laptop and started seeing this error after I tried to run some simple java code:
Exception occurred executing command line. Cannot run program "C:\Program Files\Java\jre6\bin\javaw.exe" (in directory "C:\projects\workspace\Testing"): CreateProcess error=5, Access is denied
I double checked my 32 bit installation on my desktop running WindowsXP and I have it setup the same way. What is odd is that it works for a while after I first install eclipse, then it throws the error after a while and I can't get past it. I did run java -version from the command line, so the java home is setup right.
If I remember right the widows preferences jre should point to this file, but why is the access denied error showing up?
Aftermath: Sorry for all this. Something got messed up in my environment, so I reverted back to a previous stable point and then I reinstalled eclipse which solved the problem.
I did more checking and this is a common problem, but for differing causes. Here are some links that may help:
- Tutorial for installing Eclipse with Windows 7
- Stack Overflow question about crashes with Eclipse and Win7
- Helios 64 bit windows 7 javaw access is denied issue
- Windows 7 Access is denied permission ownership issue
Solution
See this thread and define explicitly the vm path in your eclipse.ini
(like in this one).
-vm
C:/Prog/Java/jdk1.6.0_21/jre/bin/server/jvm.dll
(adapt the path and the Java version number).
This should solve the issue.
Answered By - VonC