How to set up Vm options in run configurations with current directory?
Answered
^, I want to set the VM option to be something like:
-Djava.library.path=${pwd}
where pwd is the current working directory.
Is there any way to achieve this?
Thank you in advance!
Please sign in to leave a comment.
There is no macro for the working directory in the run configurations. Request is welcome at https://youtrack.jetbrains.com/newIssue?project=IDEA .
Note that the native libraries you add to the module dependencies (https://www.jetbrains.com/help/idea/creating-and-managing-modules.html#working-with-module-dependencies) will appear in -Djava.library.path automatically.