Question
How do I fix the "JVM terminated. Exit Code=1" error I get when I run stm32cubeide inside a docker container?
I installed stm32cubeide inside a Ubuntu 20.04 docker container. I also installed 'openjdk-8-jre' on the docker image (not sure if it's needed though). The installation seems to go ok, and I install stm32cubeide to the default location ('/opt/st/stm32cubeide_1.3.0). But when I run the following:
/opt/st/stm32cubeide_1.3.0# ./headless-build.sh -build all -data /app/I get:
Building All Projects...
Building workspace
Building '/RemoteSystemsTempFiles'
Saving workspace.
Stm32cubeide:
JVM terminated. Exit code=1
/opt/st/stm32cubeide_1.3.0/jre/bin/java
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/STM32CubeIDE/workspace_1.3.0
-Declipse.buildId=Version 1.3.0
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Xms256m
-Xmx1024m
-jar /opt/st/stm32cubeide_1.3.0//plugins/org.eclipse.equinox.launcher_1.5.500.v20190715-1310.jar
-os linux
-ws gtk
-arch x86_64
-launcher /opt/st/stm32cubeide_1.3.0/stm32cubeide
-name Stm32cubeide
--launcher.library /opt/st/stm32cubeide_1.3.0//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.1100.v20190907-0426/eclipse_1801.so
-startup /opt/st/stm32cubeide_1.3.0//plugins/org.eclipse.equinox.launcher_1.5.500.v20190715-1310.jar
--launcher.overrideVmargs
-exitdata 0
-application org.eclipse.cdt.managedbuilder.core.headlessbuild
-build all
-data /app/
-vm /opt/st/stm32cubeide_1.3.0/jre/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/STM32CubeIDE/workspace_1.3.0
-Declipse.buildId=Version 1.3.0
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Xms256m
-Xmx1024m
-jar /opt/st/stm32cubeide_1.3.0//plugins/org.eclipse.equinox.launcher_1.5.500.v20190715-1310.jar and my project doesn't build.
NOTE: I'm currently running docker client on macos, but I also plan on running it on windows.
Any help on how to fix the JVM error is much appreciated!
