Deploying JAVA with RXTX

From Rxtx

Revision as of 22:50, 26 March 2006 by Barnet (Talk | contribs)
Jump to: navigation, search

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"

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.

Personal tools