After extracting the contents of the archive into a new folder and navigating there on the command line I encounter the following error when trying to run java -jar "BootStm32.jar" or java -cp "lib/RXTXcomm.jar:BootStm32.jar" bootstm32.BootStm32:
java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver
Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:123)
at bootstm32.BootSerialPort.connect(BootSerialPort.java:24)
at bootstm32.BootStm32.<init>(BootStm32.java:29)
at bootstm32.BootStm32.main(BootStm32.java:190)
Environment:
$ java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-2-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
$ uname -a
Linux fractal 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u2 (2017-06-26) x86_64 GNU/Linux
After extracting the contents of the archive into a new folder and navigating there on the command line I encounter the following error when trying to run
java -jar "BootStm32.jar"
orjava -cp "lib/RXTXcomm.jar:BootStm32.jar" bootstm32.BootStm32
:Environment:
After some searching I was able to resolve this by running
sudo apt-get install librxtx-java
(see https://stackoverflow.com/questions/8197639/java-lang-unsatisfiedlinkerror-no-rxtxserial-in-java-library-path). It would be nice if this were explained in the README.