for the record, I find it simpler to hardcode it in the pom like this:
<arguments><argument>-Djava.library.path=...

Here is my pom:

<plugin>

<groupId>org.codehaus.mojo</groupId>

<artifactId>exec-maven-plugin</artifactId>

<executions>

<execution>

<id>runUnobfuscated</id>

<configuration>

<executable>java</executable>

<environmentVariables>

<!-- LD_LIBRARY_PATH is used only on Linux -->

<LD_LIBRARY_PATH>${session.executionRootDirectory}/${buildDirectory}/natives/:${java.home}/lib/amd64/</LD_LIBRARY_PATH>

<!-- you should define different profiles for each env Linux/win -->

<PATH>${PATH};${session.executionRootDirectory}/${buildDirectory}/natives/;${java.home}/lib/amd64/</PATH>

<OIV_JAVA_VERBOSE_LEVEL>0</OIV_JAVA_VERBOSE_LEVEL>

</environmentVariables>

<inheritIo>true</inheritIo>

<longModulepath>true</longModulepath>

<arguments>

<argument>-Djava.library.path
=${session.executionRootDirectory}/${buildDirectory}/natives/;${session.executionRootDirectory}/${buildDirectory}/natives/xxxx/jre/bin</argument>

<argument>-Ddev=true</argument>

<argument>-Duser.language=en</argument>

<argument>-XX:MaxDirectMemorySize=1024m</argument>

[...]

Le sam. 6 janv. 2024 à 16:20, Neil Aggarwal <[email protected]> a
écrit :

> > As far as I get you should pass java.library.path in the java executable
> > arguments
>
> Yes, that worked, thank you!
>
> Thank you,
>    Neil
>
> --
> Neil Aggarwal, 972-834-1565, http://propfinancing.com
> We offer 30 year loans on single family houses!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to