I had a similar problem, but STM32CubeMX was already installed in my machine. I couldn't use the software after I removed Oracle JRE in favor of OpenJDK. The message was the same as yours: "This application requires a Java Runtime Environment 1.8.0_4...