I'm trying to run Clion IDE on Ubuntu 22.04.
I installed JRE and I think I installed JDK by running:
sudo apt install -y openjdk-18-jdk
but when I run ./clion.sh I get:
No JDK found. Please validate either CLION_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation.
Can anyone help?
Below are the installation instructions from Jetbrains I followed:
INSTALLATION INSTRUCTIONS
===============================================================================
Linux Installation Instructions
------------------------------------------------------------------------------
1. Unpack the CLion distribution archive that you downloaded to
where you wish to install the program. We will refer to this destination
location as your {installation home} below.
2. Open a console and cd into "{installation home}/bin" and type:
./clion.sh
to start the application. As a side effect, this will initialize various
configuration files in the ~/.CLion2020.1 directory.