
How to setup JAVA_HOME in Webstorm installed with Flatpak
I recently started developing a mobile app with React Native. For a nice IDE experience I installed Webstorm and I did that using Flatpak. The problem Unfortunately Flatpak’s sandboxing messes up with programs installed globally in the host system, in particular with Java. And I need my sweet sweet Java to build for Android. The problem manifests itself with Gradle complaining with the error below: info Installing the app... ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH....