Run “C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin\java.exe -jar “C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\STM32CubeMX.exe” “D:/GitHub/SafetyBeltBox/Bootloader/Bootloader.ioc”” in directory “D:\GitHub\SafetyBeltBox\Bootloader” on local computer
————————–
错误: 加载主类 com.st.microxplorer.maingui.STM32CubeMX 时出现 LinkageError
java.lang.UnsupportedClassVersionError: com/st/microxplorer/maingui/STM32CubeMX has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
————————–
Command exited with code 1
Indeed, it looks like a conflict between STM32CubeMX and JRE.
The latest versions of STM32CubeMX come with their own copy of JRE (normally located in <STM32CubeMX directory>\jre\bin\java.exe), so you can simply point VisualGDB to it on the first page of the STM32CubeMX Project Wizard.