Deploying JAVA with RXTX
From Rxtx
cheap diethylpropion free qwest ringtones free real ringtones lipitor online ultracet online cheap tramadol cialis online free sony ericsson ringtones free funny ringtones zoloft music ringtones carisoprodol online cheap zanaflex nokia ringtones cheap lortab free motorola ringtones free samsung ringtones alltel ringtones sharp ringtones soma online mtv ringtones levitra online pharmacy online online free real ringtones cheap ambien diethylpropion online xanax online lorazepam real ringtones free punk ringtones albuterol online cheap xanax fioricet cheap didrex free verizon ringtones ultracet online free tracfone ringtones clomid online online ativan xanax online buy nexium sonyericsson ringtones clomid online adipex online cialis online hydrocodone online levitra online midi ringtones lisinopril online wwe ringtones cheap phentermine free tracfone ringtones cheap sildenafil verizon ringtones free midi ringtones buy phentermine cheap rivotril vicodin online celexa online funny ringtones cheap flexeril cheap hoodia cheap tenuate prozac online free sprint ringtones order norco meridia free sprint ringtones buy diazepam online fioricet free mp3 ringtones buy paxil buy zanaflex cheap alprazolam soma online cheap diazepam free wwe ringtones zoloft buy lorazepam norco online free ringtones carisoprodol online qwest ringtones cheap clonazepam cheap celexa cheap clonazepam buy lipitor nokia ringtones lisinopril online cheap propecia free nokia ringtones free punk ringtones carisoprodol online cheap ultram free sony ericsson ringtones tracfone ringtones zyban online hoodia online cheap tramadol cingular ringtones jazz ringtones alltel ringtones but flexeril free nextel ringtones kyocera ringtones free samsung ringtones motorola ringtones meridia online cheap xenical sony ringtones cheap paxil sagem ringtones ativan online rivotril online ortho online cheap celexa free sharp ringtones cheap adipex ortho online but hydrocodone propecia online free cingular ringtones free nextel ringtones sagem ringtones adipex punk ringtones buy didrex free sonyericsson ringtones cheap didrex cheap diazepam free samsung ringtones free sharp ringtones meridia online mono ringtones cheap valium buy hgh free nextel ringtones funny ringtones cheap lortab but ultracet buy viagra albuterol cheap vicodin motorola ringtones lorazepam online free ericsson ringtones mp3 ringtones sonyericsson ringtones cheap viagra cyclobenzaprine online but vigrx wwe ringtones cheap zoloft clomid online cheap fioricet samsung ringtones albuterol online tramadol online cheap xenical alprazolam online cheap clonazepam free mp3 ringtones order norco xanax free mtv ringtones free qwest ringtones valium cheap sildenafil zyban online cheap alprazolam levitra cheap soma ortho online cheap xenical zyban online free polyphonic ringtones free motorola ringtones cheap lisinopril free sagem ringtones music ringtones ativan online free jazz ringtones free cool ringtones free ericsson ringtones free tracfone ringtones cheap norco cheap viagra free sony ericsson ringtones nexium online paxil online cool ringtones cheap vicodin kyocera ringtones jazz ringtones sprint ringtones cheap cialis cyclobenzaprine online free nokia ringtones paxil online lipitor online 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.
I was successful in doing this on my Mac. First, unzip the RXTX.jar file. I didn't try unjar, as unzip worked fine. Then, place the gnu folder in the same folder as your application jar file. Execute the following command from the command line:
jar uvf Your_Apps_Name_here.jar gnu
to update the jar with the contents of the classes in the gnu folder. Your app will now run by double clicking on it, provided the .dll or .jnilib library is in the same folder. I would love to include the OS specific libraries in the jar for a single, monolithic package, but after researching this on the web, it is apparently very difficult at best and probably impossible.
Other Platforms
It would be great if someone with access to Linux boxes could provide us with similar recipes for their operating system.
The above unjar instructions and subsequent jars worked fine for my app on both Mac and Windows machines.