Search code examples
intellij-idea

IntelliJ IDEA error: cannot find vm options file


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

Cannot find vm options file


Solution

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

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

    Search in the file idea.sh:

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

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

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

    or

    $IDE_BIN_HOME/idea$BITS.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.