I am trying to install PyCharm on my raspberry-pi 4 but I get this error:
ERROR: Cannot start PyCharm: No JDK found
and I also tried:
sudo apt install default-jre
but I'm still getting the error.
I am trying to install PyCharm on my raspberry-pi 4 but I get this error:
ERROR: Cannot start PyCharm: No JDK found
and I also tried:
sudo apt install default-jre
but I'm still getting the error.
The JRE is a subset of the JDK. It's possible that you need the whole JDK in order for PyCharm to work.
Try this:
sudo apt-get install openjdk-11-jdk
if openjdk-11-jdk is already installed, you need to run:
export PYCHARM_JDK=/usr/lib/jvm/java-11-openjdk-amd64/
this will add the address of the jdk to the correct environment variable.