Score:0

How to avoid the "RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyACM0"

in flag

I'm using RXTXcomm.jar and librxtxSerial.so from the librxtx-java package on 64-Bit Ubuntu 18.04 LTS and getting following warning every time I run my application on 64-Bit 1.6.0_45 JRE: RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyACM0

Is there a way to get rid of this annoying RXTX Warning?

Score:0
im flag
kiu

You can simply add "sudo" at the front of your java execution.

sudo java -jar xxxxx.jar

As the lock file may need using "admin" right to delete.

Or you can maunally to delete the lock file before running the JAVA program.

sudo rm -f /var/lock/<name of lock file>
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.