Deploying JAVA with RXTX
From Rxtx
Saving the RXTX jar-file and DLL in the JRE is not optimal if you indend to distribute your JAVA application and do not want to bundle it with a customized JRE.
Windows
For Windows, the Janel JAVA launcher can be used.
- create a directory for your application, and save the Janel executable and lap-file to it;
- create a subfolder named "classes" and save the jar-file of your application as well as the RXTXcomm.jar in it;
- create a subfolder named "lib" and save the rxtxSerial.dll to it;
- make the following entries in the lap-file:
- "-Djava.class.path=;${SELF_HOME}\classes\YourApp.jar;${SELF_HOME}\classes\RXTXcomm.jar;"
- "janel.main.class=YourAppMainClass"
- "janel.library.path.dir=${SELF_HOME}\lib"
unjar
It should be possible to unjar the RXTXcomm.jar and then add the .classes into YourApp.jar. This should eliminate the secon .jar and the need to modify java.class.path. Please clarify the steps if you pursue this.
Other Platforms
It would be great if someone with access to MacOS or Linux boxes could provide us with similar recipes for their operating system.