It also happened to me because I have many java versions installed on my Windows 10 pc. I found a workaround by executing cubeMX from command prompt as java -jar cubeMX.exe. See attachments. When I choose java version 1.8.0_201 from command prompt...