Set JDK enviroment path in Fedora

After installing PHPStorm in Fedora 20, I was trying to run it for the first time and getting this error:

ERROR: Cannot start PhpStorm\nNo JDK found. Please validate either WEBIDE_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation.

To solve this you need to edit ~/.bashrc

vim ~/.bashrc

and add the following line.

JAVA_HOME=/usr/java/latest
export JAVA_HOME
comments powered by Disqus