https://www.st.com/resource/en/application_note/dm00287603-lcdtft-display-controller-ltdc-on-stm32-mcus-stmicroelectronics.pdfthis document might be useful.
Thanks a lot for your help!!! I had the same issue and I also had jre8 installed but the problem was that I installed it after the installation of cubeMx so I erased jre8 and reinstalled it and now it's working fine.