你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

软件问题:STM32CubeProgrammer缺少Java环境

[复制链接]
shhsidbsa 提问时间:2020-10-21 15:06 /
系统是win10 64位
打开STM32CubeProgrammer时,提示如下错误

Snipaste_2020-10-21_15-06-44.png

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 发布时间:2020-10-21 15:06

举报

1个回答
butterflyspring 回答时间:2020-11-3 17:33:14
好像是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"
关于意法半导体
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
招聘信息
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
关注我们
st-img 微信公众号
st-img 手机版