Could not initialize class gnu.io.RXTXCommDriver

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

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

Could not initialize class gnu.io.RXTXCommDriver

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

Hi,

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 gnu.io.RXTXCommDriver
java.lang.NoClassDefFoundError: [b]Could not initialize class gnu.io.RXTXCommDriver[/b] thrown while loading gnu.io.RXTXCommDriver


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 http://rodrigotufino.info/2018/06/15/java-serial-port-communication-arduino-ubuntu-1804/)

I have tried whit this tutorial: https://stackoverflow.com/questions/10751304/java-lang-unsatisfiedlinkerror-no-rxtxserial-in-java-library-path-thrown-while. 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 0 guests