cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE Fails to load/start JRE (macOS (Intel))

NMont.2
Associate II

Everything worked just fine, then suddenly my STM32CubeIDE stopped working.

cd /Applications/STM32CubeIDE.app/Contents/MacOS

 ./STM32CubeIDE

I get the following error:

No Java virtual machine was found after searching the following locations:
../Eclipse/plugins/com.st.stm32cube.ide.jre.macos64_2.3.0.202207290817/jre/Contents/Home/bin

The above folder doesn't exist, but the following does:

../Eclipse/plugins/com.st.stm32cube.ide.jre.macos64_2.4.100.202301160955/jre/Contents/Home/bin

How do I properly change which JRE STM32CubeIDE is using ???

I guess I could create a symlink as temporary patch but I'd rather understand what happened and properly fix the issue.

1 REPLY 1
NMont.2
Associate II

Not sure this is THE right way or why I had to do this, I've manually edited the "Eclipse/STM32CubeIDE.ini" file

 Contents % vi Eclipse/STM32CubeIDE.ini
 
-startup
../Eclipse/plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar
--launcher.library
../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.2.400.v20211117-0650
--launcher.defaultAction
openFile
-vm
../Eclipse/plugins/com.st.stm32cube.ide.jre.macos64_2.4.100.202301160955/jre/Contents/Home/bin
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/STM32CubeIDE/workspace_1.11.2
-Declipse.buildId=Version 1.11.2
-DproductMaturityGrade=internal
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Xms256m
-Xmx1024m
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts