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

前端 未结 4 1481
长发绾君心
长发绾君心 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 05:51

    Evan Knowles posted a link to https://askubuntu.com/questions/130186/what-is-the-rationale-for-the-usr-directory. It provided me with the solution to the problem.

    Instead of using the JDK at /usr/java/jdk1.8.0_25, I instead used the JDK at /usr/local/java/jdk1.8.0_25. The reasons that this works rather than the other are explained in detail within the link.

提交回复
热议问题