[kepler-dev] [Bug 3242] - dlls should not go in c:/Windows/System32

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Tue Oct 28 17:08:38 PDT 2008


------- Comment #3 from cxh at eecs.berkeley.edu  2008-10-28 17:08 -------
I think the right solution is to add the proper directory to the user's path
upon startup.  Ptolemy does this in $PTII/bin/vergil (which is a link
to ptinvoke, which is derived by configure from ptinvoke.in).

Using a launcher program is another approach, though setting the path in
an already executing program might not work.

At install time, another approach is to add a directory to the user's path.
Under Windows, this requires writing a little code to munge the registry.
iZpack might have this code in it somewhere.

OSGi and Webstart both have ways to manage native libraries.

I think the tricky part is getting ant to use the right path.  
suggests using <env>? 
>Use a nested <env> element to your <java fork="true" >
>Note that it only works with fork="true" for obvious reasons.
>The env elements are described in the documentation of the exec task.
>Then env sub element is available in the java task since ant 1.5.

I don't do ant, so maybe an ant guru could take a look?

More information about the Kepler-dev mailing list