Structure of files in my jar is:
com/my/Main.class
META-INF/MANIFEST.MF
RXTXcomm.jar
Manifest.mf consist:
Manifest-Version: 1.0
Main-Class: com.my.Main
Class-Path: RXTXcomm.jar
(empty line present)
When I run my jar as: java -jar my.jar
I get: Exception in thread "main" java.lang.NoClassDefFoundError: gnu/io/SerialPortEventListener
What is wrong?