How to set up Vm options in run configurations with current directory?
已回答
^, 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!
请先登录再写评论。
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.