cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeProgrammerLauncher won't launch on Ubuntu machine

jlrstm
Associate

Hello all, i tried to search for a solution within the STM community but none of the solution helps.Please guide

I have using a STM32MP157F board. I have set the dev board according to the manual. I followed the instructions  in this guide to get me started on installing the programmer Getting started with STM32MP157x Evaluation boards: However, on launching the STM32CubeProgrammerLauncher I get the following error.

 

/home/STM32MPU_workspace/tmp/en.stm32cubeprg-lin-v2-16-0/jre/bin/java -jar STM32CubeProgrammerLauncher
/home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-x.y.z/bin
CubeProgrammer version: 2.16.0
Path CubeProgrammer version: : /home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-x.y.z/bin/version
Updater version:1.1.7
/home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-x.y.z/bin
Analytics - Current Software Path: /home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-x.y.z/
CubeProgrammer version: 2.16.0
Path CubeProgrammer version: : /home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-x.y.z/bin/version
/home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-x.y.z/bin
Analytics - Current Software Path: /home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-x.y.z/
CubeProgrammer version: 2.16.0
Path CubeProgrammer version: : /home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-x.y.z/bin/version
/home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-x.y.z/bin
Analytics - Current Software Path: /home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-x.y.z/
CubeProgrammer version: 2.16.0
Path CubeProgrammer version: : /home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-x.y.z/bin/version
Exception in Application start method
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:382)
at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:321)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:893)
Caused by: java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:823)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$1(LauncherImpl.java:181)
at java.lang.Thread.run(Thread.java:750)
Caused by: java.lang.UnsatisfiedLinkError: /tmp/jna-2019579227/jna9078924855068839529.tmp: /tmp/jna-2019579227/jna9078924855068839529.tmp: failed to map segment from shared object
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1817)
at java.lang.Runtime.load0(Runtime.java:782)
at java.lang.System.load(System.java:1100)
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:947)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:922)
at com.sun.jna.Native.<clinit>(Native.java:190)
at com.sun.jna.Pointer.<clinit>(Pointer.java:54)
at com.sun.jna.Structure.<clinit>(Structure.java:2130)
at com.st.controllers.MainWindowController.<init>(MainWindowController.java:205)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at sun.reflect.misc.ReflectUtil.newInstance(ReflectUtil.java:51)
at javafx.fxml.FXMLLoader$ValueElement.processAttribute(FXMLLoader.java:927)
at javafx.fxml.FXMLLoader$InstanceDeclarationElement.processAttribute(FXMLLoader.java:971)
at javafx.fxml.FXMLLoader$Element.processStartElement(FXMLLoader.java:220)
at javafx.fxml.FXMLLoader$ValueElement.processStartElement(FXMLLoader.java:744)
at javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:2744)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2534)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2448)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3251)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3212)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3185)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3161)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3141)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:3134)
at com.st.app.Main.openCubeProgrammmerWindow(Main.java:192)
at com.st.app.Main.start(Main.java:184)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$8(LauncherImpl.java:769)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$7(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication.lambda$null$10(GtkApplication.java:245)
... 1 more

3 REPLIES 3
Olivier GALLIEN
ST Employee

Hi @jlrstm ,

You might not use STM32CubeProgrammerLauncher file but STM32CubeProgrammer to launch the UI. 

eg in 

 /home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-2.16/bin

./STM32CubeProgrammer 

Hope it help 

Olivier 

 

 

 

 

 

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hello Olivier

Thank you for your response. 

 

However when i try I still get the same error.

 /home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-2.16/bin

./STM32CubeProgrammer . 

 

ERROR

./STM32CubeProgrammer: line 7: cd: /home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-x.y.z/bin : No such file or directory
/home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-x.y.z/bin
CubeProgrammer version: 2.16.0
Path CubeProgrammer version: : /home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-x.y.z/bin/version
Updater version:1.1.7
/home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-x.y.z/bin
Analytics - Current Software Path: /home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-x.y.z/
CubeProgrammer version: 2.16.0
Path CubeProgrammer version: : /home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-x.y.z/bin/version
/home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-x.y.z/bin
Analytics - Current Software Path: /home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-x.y.z/
CubeProgrammer version: 2.16.0
Path CubeProgrammer version: : /home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-x.y.z/bin/version
/home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-x.y.z/bin
Analytics - Current Software Path: /home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-x.y.z/
CubeProgrammer version: 2.16.0
Path CubeProgrammer version: : /home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-x.y.z/bin/version
Exception in Application start method
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:382)
at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:321)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
Caused by: java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:823)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$1(LauncherImpl.java:181)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.UnsatisfiedLinkError: /tmp/jna-2019579227/jna4896057083018484687.tmp: /tmp/jna-2019579227/jna4896057083018484687.tmp: failed to map segment from shared object
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1817)
at java.lang.Runtime.load0(Runtime.java:810)
at java.lang.System.load(System.java:1088)
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:947)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:922)
at com.sun.jna.Native.<clinit>(Native.java:190)
at com.sun.jna.Pointer.<clinit>(Pointer.java:54)
at com.sun.jna.Structure.<clinit>(Structure.java:2130)
at com.st.controllers.MainWindowController.<init>(MainWindowController.java:205)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at sun.reflect.misc.ReflectUtil.newInstance(ReflectUtil.java:51)
at javafx.fxml.FXMLLoader$ValueElement.processAttribute(FXMLLoader.java:927)
at javafx.fxml.FXMLLoader$InstanceDeclarationElement.processAttribute(FXMLLoader.java:971)
at javafx.fxml.FXMLLoader$Element.processStartElement(FXMLLoader.java:220)
at javafx.fxml.FXMLLoader$ValueElement.processStartElement(FXMLLoader.java:744)
at javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:2707)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2527)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2441)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3214)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3175)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3148)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3124)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3104)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:3097)
at com.st.app.Main.openCubeProgrammmerWindow(Main.java:192)
at com.st.app.Main.start(Main.java:184)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$8(LauncherImpl.java:769)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$7(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication.lambda$null$10(GtkApplication.java:245)
... 1 more
Exception running application com.st.app.Main

A point to be noted is that error says that No such file or directory. To avoid this error, i did a manual cmd 

 

java -Djdk.gtk.version=2 -jar "/home/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-x.y.z/bin/STM32CubeProgrammerLauncher"

 

ERROR THAT I GET IS:
Error: Could not find or load main class com.st.app.Main
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application

 

Jacob WOODRUFF
ST Employee

Hi All,

 

This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.

 

Regards,
Jake

ST Support