How do I add default JVM arguments with Gradle

后端 未结 3 1792
孤独总比滥情好
孤独总比滥情好 2020-12-31 03:55

I need to add default JVM options to my jar, when build with Gradle. From the documentation I got that I have to set:

applicationDefaultJvmArgs = [\"-Djavafx         


        
3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-31 04:24

    applicationDefaultJvmArgs is provided by the Application plugin. So if you apply that plugin, the error would probably go away, and you should be able to execute the program by issuing gradle run once you set the mainClassName property to the fully qualified class name, the main method of which you want to invoke.

提交回复
热议问题