Question

I'm getting this issue when trying to Make my java project. I just uninstalled my 64 bit jdk for various reasons and installed the 32 bit one. I'm getting the error:

Cannot run program "C:\Program Files\Java\jdk1.7.0_51\bin\java" (in directory "C:\Users\$username.IntelliJIdea13\system\compile-server"): CreateProcess error=2, The system cannot find the file specified

How do I get the compiler to use the jdk in the C:\Program Files (x86) folder which I now have?

Was it helpful?

Solution

From the menu: File -> Project Structure....

On the left, below "Platform Settings", you have "SDKs": click on it; you can add your new JDK here.

Always in the same window, below "Project Settings", select "Project": you have the option to select the JDK which you just added.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top