Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

"Access is denied" when running java.exe from Command Prompt

843789Jun 18 2009 — edited Jun 21 2009
This is probably an XP problem but I can't seem to Google a solution.

When I type "java" from a Win XP Pro SP3 Command Prompt (i.e. cmd.exe) I get "Access is denied" - even if I type it from C:\Windows\System32 where java.exe resides.

I've also tried typing "java" from "C:\Program Files\Java\jdk1.6.0_14\bin" where I installed the latest JDK and I still get "Access is denied".

I've tried changing the Command Prompt's Advanced properties to "Run with different credentials" without success.
I've also tried turning off my Antivirus/Malware/Firewall programs but no difference.
I've also tried changing the Owner of the directory tree to my user account (which is an Administrator account) but it makes no difference.

I'm guessing it's some sort of XP Security setting problem but I don't know how to sort it out.

Help please? It's driving me crazy and I can't even get started.

Paul
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 19 2009
Added on Jun 18 2009
9 comments
4,213 views