Eclipse says "Access Denied" when running javaw and how to fix it?
Posted
by
Eduardo de Luna
on Super User
See other posts from Super User
or by Eduardo de Luna
Published on 2012-09-21T01:09:53Z
Indexed on
2012/09/21
3:40 UTC
Read the original article
Hit count: 965
I'm trying to get Eclipse to compile and run a HelloWorld class but it can't even do that. I have installed Eclipse x86 SDK 4.2.0 together bit with the latest JRE and JDK both in 64 bit as well. I also have the PATH variables set to respond to command prompts. When I try to run the following code:
class HelloWorld {
public static void main(String[] args)
{
System.out.println("Hello World!" ) ;
}
}
And it returns the following error:
Exception occurred executing command line. Cannot run program "C:\Program Files\Java\jre7\bin\javaw.exe" (in directory "C:\Users\Default\workspace\devs"): CreateProcess error=5, Access is denied.
Can you help me fix this? Thanks!
© Super User or respective owner