2

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.

bad_coder
  • 11,289
  • 20
  • 44
  • 72
totensee
  • 78
  • 1
  • 9

2 Answers2

5

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
DivideByZero
  • 423
  • 6
  • 14
0

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.

Aking
  • 474
  • 2
  • 11