问题描述
我在尝试制作我的 Java 项目时遇到了这个问题.由于各种原因,我刚刚卸载了 64 位 jdk 并安装了 32 位 jdk.我收到错误:
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:
无法运行程序C:Program FilesJavajdk1.7.0_51injava"(在目录C:Users$username.IntelliJIdea13systemcompile-server"):CreateProcess error=2, 系统找不到指定的文件
如何让编译器使用我现在拥有的 C:Program Files (x86) 文件夹中的 jdk?
How do I get the compiler to use the jdk in the C:Program Files (x86) folder which I now have?
推荐答案
从菜单:File
-> Project Structure...
.
在左侧,平台设置"下方,您有SDK":点击它;您可以在此处添加新的 JDK.
On the left, below "Platform Settings", you have "SDKs": click on it; you can add your new JDK here.
始终在同一窗口中,在项目设置"下方,选择项目":您可以选择刚刚添加的 JDK.
Always in the same window, below "Project Settings", select "Project": you have the option to select the JDK which you just added.
这篇关于从32位程序文件夹编译到64位1时更改IntelliJ 13中的jdk路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!