从32位程序文件夹编译为64位时,更改IntelliJ 13中的jdk路径 [英] Change jdk path in IntelliJ 13 when compiling from 32 bit program file folder to 64 bit one
问题描述
我在尝试制作我的java项目时遇到了这个问题。我刚刚因各种原因卸载了我的64位jdk并安装了32位的。我收到错误:
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 Files\Java \ _jdk1.7.0_51 \ bin\java(在
目录中C:\Users \ $ username.IntelliJIdea13 \ system \ compile-server):
CreateProcess error = 2,系统找不到文件指定
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
如何让编译器使用我现在拥有的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?
推荐答案
从菜单中:档案
- > 项目结构...
。
From the menu: 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位时,更改IntelliJ 13中的jdk路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!