Deploying JAVA with RXTX

From Rxtx

(Difference between revisions)
Jump to: navigation, search
m
Line 10: Line 10:
** "janel.main.class=YourAppMainClass"
** "janel.main.class=YourAppMainClass"
** "janel.library.path.dir=${SELF_HOME}\lib"
** "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 ==
== 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.
It would be great if someone with access to MacOS or Linux boxes could provide us with similar recipes for their operating system.

Revision as of 22:57, 4 April 2006

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.

Personal tools