久芯网

软件问题:STM32CubeProgrammer缺少Java环境

avatar shhsidbsa 提问时间: 2023-09-17 16:18:41 / 未解决
系统是win10 64位
打开STM32CubeProgrammer时,提示如下错误

软件问题:STM32CubeProgrammer缺少Java环境 [相关图片]

STM32CubeMX和stm32CubeIDE均可以正常运行。
尝试过使用管理员权限和使用java直接运行安装包,都报相同的错误。
尝试过STM32CubeProgrammer的版本为2.4和2.5。

java -version
java version "1.8.0_261"
Java(TM) SE Runtime Environment (build 1.8.0_261-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)

javac -version
javac 1.8.0_261


1个回答
  • avatar butterflyspring
    回答时间: 2023-09-17 16:49:38

    好像是oracle 公司改变了策略,要收费了吧。据说后面的版本里会包含解决的程序。当前还没有。有大神找到了替代的方式,你试试看 Instructions to install and launch STM32CubeProgrammer (V2.5.0) with ZULU 8 To avoid issues linked to java (javafx missing library), some workarounds are available using the ZULU 8 which is basically an openjdk with and integrated javafx Windows(32/64 bits): 1) Download Zulu Jre 8 from (https://cdn.azul.com/zulu/bin/zu ... 8.0.242-win_x64.zip) 2)Unzip the package in your machine 3) Change the Zulu\bin\java.exe settings to fit the high resolution screens settings: -Right click on Zulu\bin\java .exe -Select properties, then the compatibility tab --> Settings and tick override high DPI scaling behavior [System] 4)Install STM32CubeProgrammer with ZULU JRE8: -Run CMD with administrator privilege. -Install STM32CubeProgrammer "Zulu"\bin\java.exe -jar SetupSTM32CubeProgrammer-2.5.0.exe 5) After installation, you can launch the tool now through CMD -Open CMD window(no admin rights are needed) - Go to STM32CubeProgrammer install location: "....\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin" -Launch with this command: "Zulu_install_location\bin\java.exe -jar STM32CubeProgrammer.exe"

会员中心 微信客服
客服
回到顶部