How to change JAVA_HOME value?

By mistake, I set wrong value for JAVA_HOME when installing the CUBA Studio. Now, though I have tried deleting the application, the value still stays same and keeps on giving the error of the attached image.
How can I change the value for JAVA_HOME?

Thanks for your time.



The error occurs when Studio could not find ${JAVA_HOME}/bin/java*. As written in the documentation *JAVA_HOME should point to JDK_1.8.
How to adjust environment variables search in your OS manuals.

If JDK_1.8 is installed, but JAVA_HOME is incorrect, you can click “Yes” in the dialog and specify an alternative path in Studio.