java run error create process error=5 access is denied.
Answered
[code]Error:Cannot run program "C:\Program Files\Java\jdk-9.0.1\bin\java" (in directory "C:\Users\Syn\.IdeaIC2017.3\system\compile-server"): CreateProcess error=5, Access is denied[/code]
I pointed it to the right folder. Would this have something to do with eclipse being also installed?
I also killed java in task manager(win7 64bit) but the same issue.
Please sign in to leave a comment.
i slapped a fresh install of windows 8.1 installed everything again and the same error appears. WHAT IS GOING ON!!!
Pretty desperate for any possible ideas here...
*Bump*
Since no one else has this problem and we can't reproduce it, it's hard to guess the root case and help you.
Did you try with Java 8? Does `java -version` start from the command line (cmd.exe)?
shows 9.0.1
See if Java 8 works instead of Java 9.
i changed it in the run configurations to 1.8.0
but still got this
Error:Cannot run program "C:\Program Files\Java\jdk-9.0.1\bin\java" (in directory "C:\temp\IDEA\compile-server"): CreateProcess error=5, Access is denied
Is there another setting im suppose to change?
Yes, you need to change the project/module SDK version in the Project Structure dialog.
i checked. it had 1.8.0
can i add you to another place? So we can hammer this out in 10-15 min?
If you change the project SDK, you should not see the same 9.0.1 version in the path, please double check.
See http://stackoverflow.com/a/12900859/104891 for all the places where SDK and language level can be changed.
i found another option in there....i didnt click apply the first time.
I have it working now. Thank you and merry christmas.