I would like to use rxtx
library to connect to a serial port.
I've already tested a program that identifies available ports and communicate.However, when I export it as a runnable jar file.
I execute it with below command.
java -jar prog.jar
It shows this error and fails (Can't load IA 32-bit .dll on a AMD 64-bit )
What can be wrong ?
This provides some details on how to get jvm args used by eclipse...
How can I specify the default JVM arguments for programs I run from eclipse?
In essence check Project Properties -> Run Configurations -> Arguments Tab ->JVM Args (second box below Program Arguments) You should copy those arguments and use them in your
java <jvmArgs> -jar prog.jar
Check JRE as per below you should use the java from this bin
https://stackoverflow.com/a/4440223/6935152 Project->Properties and choose Java Build Pathand choose the Libraries tab. Find the JRE System Library