Selected directory is not a valid home for JDK - Intellij IDEA on Ubuntu

前端 未结 4 1468
长发绾君心
长发绾君心 2020-12-24 05:36

After installing Intellij Idea 14, with OracleJDK 1.8 u25 (64 bit) on my 14.04 Ubuntu system, I cannot configure the Java SDK to use any JDK. When I navigate to Module Setti

4条回答
  •  天涯浪人
    2020-12-24 06:02

    For the ones who run into this problem even though you select the right directory under /usr/lib/jvm, there is something you should know : The directories under /usr/lib/jvm are created when your system installs the minimum set of java tools. But it doesn't mean you have the development files available. You need to install the development files :

    sudo apt-get install java-1.8.0-openjdk-devel
    

    After installing this package, try to select the directory again and it should work.

提交回复
热议问题