LD_LIBRARY_PATH My java program needs LD_LIBRARY_PATH to be set in the environment. If I use ant to invoke it with fork=yes, how do I make LD_LIBRARY_PATH available to the VM started by ant?

Erik Hatcher

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.
About | Sitemap | Contact