Skip to main content
Visitor II
September 1, 2023
Question

Java class problem while opening STM32CubeIDE and trying to upload programs to MCU

  • September 1, 2023
  • 1 reply
  • 3834 views

Hello, ever since I installed the IDE I have had an error message pop-up every time I open it (see attached imaged):

An internal error occurred during: "AutoRegisterSchemeHandlersJob".
Could not initialize class com.sun.jna.Native

As well as

An internal error occurred during: "Initializing External-tools".
Could not initialize class com.sun.jna.Native

At first I didn't think much of it since I could create and work on new projects without issue, however now that I need to upload the program I made to the MCU (STM32F303RE) I get an error relating to the same issue:

An internal error occurred during: "Launching PRACTICA0 Debug".
Could not initialize class com.sun.jna.Native

I have tried searching everywhere for a fix yet I could not find one, have already tried reinstalling the IDE, ST-LINK Drivers, even reinstalled Java as well as JDK, both at latest versions.I am currently using Windows 10 10.0.19045

 

1 reply

Visitor II
February 27, 2024

I had a similar error to yours, can you please tell me if you've solved it now?

Radwan
Visitor II
April 26, 2024

just close the IDE program and open it again "Run As Adminestrator"

Explorer
May 19, 2024

Thanks a lot, I have already fixed issue, by "RUN As Administrator".