In IntelliJ from snap I can't select openJDK 11 from apt-get

6,073

I have switched to Oracle's official JDK and now it's working fine.

Share:
6,073

Related videos on Youtube

Harold L. Brown
Author by

Harold L. Brown

Updated on September 18, 2022

Comments

  • Harold L. Brown
    Harold L. Brown over 1 year

    I am using Ubuntu 18.10 64 bit.

    I have installed IntelliJ IDEA 2018.3.1 via snap.

    I have installed openJDK 11.0.1 with apt-get.

    I now want to set openJDK as the SDK for IntelliJ.

    However when I try to select /usr/lib/jvm/java-11-openjdk-amd64 the error

    The selected directory is not a valid home for JDK

    occurs.

    But the directory exists and its bin folder contains the java executable.

    What am I doing wrong? Which other location could I try?