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

Pau*_*osa 6 intellij-idea

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

找不到虚拟机选项文件

Roe*_*umi 5

我在Ubuntu 16.4中发生了这种情况,并且pycharm.vmoptions文件位于bin/目录下。

我试图使用以下命令运行 shell 脚本:

cd <path_to_pycharm_installation>/bin
source pycharm.sh
Run Code Online (Sandbox Code Playgroud)

在没有“source”命令的情况下运行 bash 脚本为我解决了这个问题:

./pycharm.sh
Run Code Online (Sandbox Code Playgroud)


Moh*_*asi 2

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

export IDEA_VM_OPTION="[path-to-'.vmoptions' file]"
Run Code Online (Sandbox Code Playgroud)

在idea.sh文件中搜索:

grep -ri "vmoption" ./bin/idea.sh
Run Code Online (Sandbox Code Playgroud)

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

$HOME/.IntelliJIdea2016.2/idea$BITS.vmoptions
Run Code Online (Sandbox Code Playgroud)

或者

$IDE_BIN_HOME/idea$BITS.vmoptions
Run Code Online (Sandbox Code Playgroud)

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