found!
i use this code to load lwjgl native, but it is practically the same used for RXTX (old code was in the old HDD.. rip)
just be sure to change the path and file name accordantly, and call this method on the constructor of the main class that you'll use for the serial communication.
private static void loadNatives() {
Logger staticLog = LoggerFactory.getLogger("Natives Loader");
staticLog.debug("Loading natives");
try {
String osName = System.getProperty("os.name");
staticLog.info("Operating system name => {}", osName);
File path = new File("Libraries" + File.separator + "lwjgl-2.8.3" + File.separator + "native" + File.separator + osName.toLowerCase());
System.setProperty("org.lwjgl.librarypath", path.getAbsolutePath());
} catch (UnsatisfiedLinkError e) {
staticLog.error("Native code library failed to load", e);
}
staticLog.info("Loaded natives");
}
uh, and remove logger code if give you error, maybe instead use System.out.println