java.lang.UnsatisfiedLinkError
is thrown when java code attempts to load a native library that doesn't exist. In the SammyIAm's Moppy github project you can find the rxtxSerial.dll which is the native library for windows. You have to add this library to your classpath and then load it. You can do it specifying the next parameter in your java call:
java -Djava.library.path=C:\path_to_your_dll\
And add the next snippet to your code in order to load the library:
System.loadLibrary("rxtxSerial");
Please note that in loadLibrary
is not necessary to specify the extension (.dll on windows, .so on unix .dylib on mac an so on) because java do it automatically.
Hope this helps,