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.

export JAVA_HOME
Pedro Luz
A personal blog by Pedro Luz about coding, coding, habit building, and a few things more.(Psst... I am open to opportunities.)
Reach out to me on your favorite social :)© 2020 Pedro Luz