IntelliJ IDEA错误:找不到vm选项文件

IntelliJ IDEA错误:找不到vm选项文件

问题描述:

我正在尝试启动IntelliJ IDEA,但弹出以下错误:

I'm trying to launch IntelliJ IDEA but the following error pops up:

找不到虚拟机选项文件

Cannot find vm options file

显式解决方案是设置一个名为 $ IDEA_VM_OPTION 的环境变量:

The explicit solution is to set an environment variable named $IDEA_VM_OPTION:

export IDEA_VM_OPTION="[path-to-'.vmoptions' file]"

搜索idea.sh文件:

Search in the file idea.sh:

grep -ri "vmoption" ./bin/idea.sh

您将看到 .vmoptions 文件的搜索路径为:

You will see that the search path for .vmoptions file is either:

$HOME/.IntelliJIdea2016.2/idea$BITS.vmoptions

$IDE_BIN_HOME/idea$BITS.vmoptions

因此,如果安装了64位JVM,则将文件 bin/idea64.vmoptions 复制到上述位置之一,否则将文件 bin/idea.vmoptions 复制到其他位置.

So, copy file bin/idea64.vmoptions into one of above locations if you have 64 bit JVM installed or file bin/idea.vmoptions else.