Re: Force PATH env variable - Enabling .DLL loading

2006-01-12 Thread Steve Loughran
Dominique Devienne wrote: On 1/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: If a .dll depends on another .dll, then it must be found in the system-specific, on Windows the Path (on *nix, LD_LIBRARY_PATH usually). So to be platform independend you use both? java env value=${thePath}

Re: AW: Force PATH env variable - Enabling .DLL loading

2006-01-11 Thread Steve Loughran
[EMAIL PROTECTED] wrote: If a .dll depends on another .dll, then it must be found in the system-specific, on Windows the Path (on *nix, LD_LIBRARY_PATH usually). So to be platform independend you use both? java env value=${thePath} key=PATH/ env value=${thePath} key=LD_LIBRARY_PATH/

AW: AW: Force PATH env variable - Enabling .DLL loading

2006-01-11 Thread Jan.Materne
If a .dll depends on another .dll, then it must be found in the system-specific, on Windows the Path (on *nix, LD_LIBRARY_PATH usually). So to be platform independend you use both? java env value=${thePath} key=PATH/ env value=${thePath} key=LD_LIBRARY_PATH/ /java Jan What

Re: Force PATH env variable - Enabling .DLL loading

2006-01-11 Thread Dominique Devienne
On 1/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: If a .dll depends on another .dll, then it must be found in the system-specific, on Windows the Path (on *nix, LD_LIBRARY_PATH usually). So to be platform independend you use both? java env value=${thePath} key=PATH/ env

Re: Force PATH env variable - Enabling .DLL loading

2006-01-10 Thread Dominique Devienne
As I need to deploy the app on numerous machines, I'd rather avoid to set the PATH each time. Any idea to set the environment within ant commandline or even better within the ant file before I call the java task? try setting the java.library.path system property. There are 2 ways to find

AW: Force PATH env variable - Enabling .DLL loading

2006-01-10 Thread Jan.Materne
If a .dll depends on another .dll, then it must be found in the system-specific, on Windows the Path (on *nix, LD_LIBRARY_PATH usually). So to be platform independend you use both? java env value=${thePath} key=PATH/ env value=${thePath} key=LD_LIBRARY_PATH/ /java Jan

Force PATH env variable - Enabling .DLL loading

2006-01-09 Thread Frederic Chalons
Hi, I would like to use ant to launch a java application that loads a black box .dll under Windows. Whatever the reason, the .dll path need to be present in the PATH environment variable. Otherwise, the java app fails to find and load the library. As I need to deploy the app on numerous

AW: Force PATH env variable - Enabling .DLL loading

2006-01-09 Thread Jan.Materne
I would like to use ant to launch a java application that loads a black box .dll under Windows. Whatever the reason, the .dll path need to be present in the PATH environment variable. Otherwise, the java app fails to find and load the library. e.g. using SWT ... As I need to deploy the app on

Re: AW: Force PATH env variable - Enabling .DLL loading

2006-01-09 Thread Clifton Craig
Maybe try forking the java task and using an env/ sub-element with it? Using the env/ tag you can set environment variables for the forked process where the JRE runs. My other suggestion would be to distribute the DLL with the Java library which may or may not make more sense depending on your