Change jdk path in IntelliJ 13 when compiling from 32 bit program file folder to 64 bit one

僤鯓⒐⒋嵵緔 提交于 2019-12-06 17:41:02

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/22392110/change-jdk-path-in-intellij-13-when-compiling-from-32-bit-program-file-folder-to

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!