Add java-opts in Idea at runtime


for the ldap connection I need to add[…my_trustore]
I tried it like this, but does not work:

I do not see, what I am doing wrong :frowning:

any idea?

The VM options in the run configuration are VM options for the Gradle process, not for the application process.

Here is what official documentation says how to pass system properties to the application:

and stackoverflow:

This worked for me:

bootRun {
    if (System.getProperty('jvmArgs')) {
        jvmArgs = (System.getProperty('jvmArgs').split("\\s+") as List)


1 Like

great! that works, thx…