Could not initialize class

Discuss how to use the features of Atollic TrueSTUDIO, including the editor, assembler, C/C++ compiler, linker, debugger, static code analysis and team collaboration tools.

Moderators: Markus Girdland, Mattias Norlander

Posts: 2
Joined: Tue Mar 12, 2019 5:02 am

Could not initialize class

Postby rtufino » Tue Mar 12, 2019 5:24 am


I'm using Atollic TrueStudio on Ubuntu 18.04. I am trying to Launch Terminal to communicate with a Nucleo board through the serial port, but the window no show the port's list and the program show in the terminal the following error:

Code: Select all

Forcing property named 'libNRJavaSerial.userlib' to value 'sys'
java.lang.UnsatisfiedLinkError: no libNRJavaSerial in java.library.path thrown while loading
java.lang.NoClassDefFoundError: [b]Could not initialize class[/b] thrown while loading

The library librxtx-java is installed. The *.so files are at /usr/lib/jni/ and the *.jar files are in /usr/share/java (I have experience working with Java and the serial port

I have tried whit this tutorial: I modified the file /opt/Atollic_TrueSTUDIO_for_STM32_x86_64_9.3.0/ide/TrueSTUDIO.ini adding -Djava option with the paths of librxtx-java installation. But not work.

I would like use the terminal inside TrueStudio and avoid external tools.

Thanks for your atention.
You do not have the required permissions to view the files attached to this post.

Return to “Atollic TrueSTUDIO tool discussions”

Who is online

Users browsing this forum: No registered users and 2 guests