Intellij 14提供的javaHome似乎无效 [英] Intellij 14 the supplied javaHome seems to be invalid

查看:743
本文介绍了Intellij 14提供的javaHome似乎无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首次在Windows 7 x64上启动IntelliJ IDEA Community Edition 14.0.2时,在尝试导入示例libGDX gradle配置时收到以下错误:

When first launching IntelliJ IDEA Community Edition 14.0.2 on Windows 7 x64 I received the following error when trying to import the sample libGDX gradle config:


Intellij 14提供的javaHome似乎无效

Intellij 14 the supplied javaHome seems to be invalid

IDE正在查找 C:\\ \\ java程序文件(x86)\ JetBrains \IntelliJ IDEA社区版14.0.2 \ jre 用于java运行时,但文件存在于此目录的子目录中: C:\程序文件(x86)\ JetBrains \ IntelliJ IDEA社区版14.0.2 \ jre \ jre

The IDE is looking in C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 14.0.2\jre for the java runtime, but the files exist in a sub directory off this one: C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 14.0.2\jre\jre.

我的解决方案是将 jre\jre 的内容复制到 jre ,这解决了问题 - 但是感觉不是正确的做法。

My solution was to copy the contents of jre\jre up one level to jre, which solved the problem - but doesn't feel like the right thing to do.

这是一个可接受的解决方案,还是有更好的方法来解决这个问题?
我觉得奇怪的是默认安装不在正确的位置;但是可能有一些我不太了解的环境。

Is this an acceptable solution, or is there a 'better way' to solve this? It feels strange to me that the default install is not in the correct location; but there might be something environmental that I'm not quite understanding.

这是一个重复的记录,但它不是 - 它是一个不同的产品。 Android Studio 是与 IntelliJ-Idea

This was recorded as a duplicate, but it is not - it is a different product. Android Studio is a different product to IntelliJ-Idea.

推荐答案

因为你有64将Java作为您的JAVA_HOME,在IntelliJ上运行64位版本,在IntelliJ安装的bin目录中运行idea64.exe;例如:

Since you have a 64-bit Java as your JAVA_HOME, run the 64-bit version on IntelliJ instead, idea64.exe in the bin directory of your IntelliJ installation; for example:

C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 14.0.2\bin\idea64.exe

这篇关于Intellij 14提供的javaHome似乎无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆