开发者

Access is denied error trying to run eclipse helios in windows 7 64 bit

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:

  1. Tutorial for installing Eclipse with Windows 7
  2. Stack Overflow question about crashes with Eclipse and Win7开发者_运维知识库
  3. Helios 64 bit windows 7 javaw access is denied issue
  4. Windows 7 Access is denied permission ownership issue


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.


There are lots of security restrictions in Windows7. One of them is, it does not allow applications to write data in system directories. The easiest solution I find is to move Eclipse and workspace to a drive other C:\ drive. But that may not fit for everyone.

You may want to look into this: Eclipse and Windows 7


I have added the following lines in my eclipse.ini file:

-vm C:/Program Files/Java/jdk1.8.0_241/jre/bin/javaw.exe

And restarted eclipse. This resolved my issue. Make sure to add these lines before "-vmargs" argument in eclipse.ini file. Also make sure to edit the path for javaw.exe as per your local set up.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜