Hi everyone,
I'm trying to execute a Java program accessing native components, following the
very good blog post http://www.buildanddeploy.com/node/17
I however have a problem setting environment variables within the exec plugin.
Here is an extract of my POM :
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<environmentVariables>
<key>DYLD_LIBRARY_PATH</key>
<value>${project.build.directory}/thirdparty/vtk/lib/vtk-5.4/</value>
</environmentVariables>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath />
<argument>
com.artenum.vtk.maven.ConeDemo
</argument>
</arguments>
</configuration>
</plugin>
When I run it, I have a java.lang.UnsatisfiedLinkError.
If I do
export DYLD_LIBRARY_PATH=mypath
then it works...
Do you know what is wrong in my exec configuration ?
Thank you
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]