smt52
Posts: 8
Joined: Sun Jul 10, 2005 11:16 pm

Need to put files in bin/ and lib/

Hi,

I need to place "RXTXcomm.jar" in lib/ and "rxtxSerial.dll" in bin/ in the current Java machine.

I also want to ensure that if the user updates their Java virtual machine, that the application doesn't stop working (as it can't find the .jar and .dll files).

Shane.

p.s. According to http://www.advancedinstaller.com/feats-list.html:

"Native Java Launcher: easy classpath and library path construction.
With Advanced Installer you can easily add files, folders, Windows Installer properties and Windows environment variables to the classpath or library path of your Java application."
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

Hi Shane,

The files of your application should be placed in your installation folder, not in the folders of the JVM.

In order for your application to find them, you should add the JAR file in the classpath and the folder containing the DLL in the library path. Copying the files in the \lib and \bin folders is not the best approach.

Best regards,
Mihai
Last edited by Mike on Fri Aug 19, 2005 10:05 am, edited 1 time in total.
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com
smt52
Posts: 8
Joined: Sun Jul 10, 2005 11:16 pm

I guess my question wasn't phrased well enough - I was simply wanting to work out how to install a .jar file in the classpath. Forget it.
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”