Reputation: 78
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.
Upvotes: 2
Views: 13840
Reputation: 682
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.
Upvotes: 0
Reputation: 461
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
Upvotes: 7