Java Access Denied

Your working directory is C:\Program Files (x86)\Java\jdk1.6.0_17\bin. You are not allowed to write files here. Copy your java files to a different directory and try to compile them there.

edit:

You should include C:\Program Files (x86)\Java\jdk1.6.0_17\bin to your PATH environment variable. And set JAVA_PATH to C:\Program Files (x86)\Java\jdk1.6.0_17.

set JAVA_PATH="C:\Program Files (x86)\Java\jdk1.6.0_17"
set PATH=%PATH%;"C:\Program Files (x86)\Java\jdk1.6.0_17\bin"

After that, you can call javac from where ever you like.

Leave a Comment