简体   繁体   English

IntelliJ Mac JRE主页

[英]IntelliJ mac JRE home

I have a shared workspace between my Windows-based laptop and Macbook, today when I wanted to work with my Mac on the project that I got used to work on Windows, I faced this error in the compilation: 我在基于Windows的笔记本电脑和Macbook之间有一个共享的工作区,今天,当我想在以前用于Windows的项目上使用Mac时,在编译中遇到了以下错误:

12:02:30 Compilation completed successfully in 21s 530ms 12:02:30 Error running GUI: 'C:/Program Files/Java/jre1.8.0_101' is not a valid JRE home 12:02:30在21秒530毫秒内成功完成编译12:02:30运行GUI时出错:“ C:/ Program Files / Java / jre1.8.0_101”不是有效的JRE主目录

Would you please let me know what should I do to resolve this problem? 您能否让我知道该怎么办才能解决此问题? Please note that I checked for the SDK address in my project and it is correctly adjusted to the Mac JDK, but I could not find the 'C:/Program Files/Java/jre1.8.0_101' anywhere in my project structure! 请注意,我在项目中检查了SDK地址,并且已正确调整为Mac JDK,但在项目结构中的任何地方都找不到“ C:/ Program Files / Java / jre1.8.0_101”!

Thanks 谢谢

在此处输入图片说明

It is right there in the edit configurations. 就在编辑配置中。

It depends on where you installed your JRE, it's searching for C:/Program Files/Java/jre1.8.0_101 which is on your PC. 这取决于您的JRE的安装位置,它正在搜索PC上的C:/Program Files/Java/jre1.8.0_101

I don't use a Mac, but find your installation folder, and put it into IntelliJ Idea. 我没有使用Mac,但是找到了您的安装文件夹,并将其放入IntelliJ Idea中。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM