I installed Pycharm, which automatically created then a shortcut at the Applications Menu. But the shortcut does not work and shows the message
No JDK found. Please validate either PYCHARM_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation.
But Java is installed:
java version "1.8.0_73"
Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode).
Besides, if I run the script "pycharm.sh" from the command line, it works.
I had this issue today myself. I installed pycharm via getdeb repository so my installation folder is located at:
/usr/share/pycharm/bin
. In order to fix this issue steps are:sudo gedit
orsudo xed
/usr/share/pycharm/bin/pycharm.sh
I had the same issue, and I fixed it by doing:
Add the following line to .bashrc/.profile. This worked for me.
Assuming you have set JAVA_HOME. If not, use path to Java home directory.
If you don't mind installing a snap, you can also try:
Start it (the first time) from a terminal with
After closing, search for it in the dash and drag the icon to the launcher.