Task assemble failed - Supplied javaHome is not a valid folder

Hello all.

I downloaded Cuba Studio (web version) and cannot get started.
I click Build and get the following message:

[09:13:20.142] Task ‘assemble’ failed
java.lang.IllegalArgumentException: Supplied javaHome is not a valid folder. You supplied: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java

Please help.


Please find here the instruction on how to install JDK and set JAVA_HOME environment variable.