cancel
Showing results for 
Search instead for 
Did you mean: 

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

Chris32
Associate

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

 

3 REPLIES 3
ZHAO
Associate

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

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

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