java.lang.UnsupportedClassVersionError: com/st/microxplorer/maingui/STM32CubeMX

Sysprogs forums Forums VisualGDB java.lang.UnsupportedClassVersionError: com/st/microxplorer/maingui/STM32CubeMX

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #34589
    maikebing
    Participant

    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

    #34590
    bflannery
    Participant

    It just looks like you need to update your JRE to be compatible with that version of CubeMX.

    #34594
    support
    Keymaster

    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.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.