How to set app name in macOS, gradle?

Rob Nikander rob.nikander at
Thu Sep 17 17:11:00 UTC 2020


I’m trying to set the text shown in the macOS menubar. The advice I see online says to use -Xdock:name, but when I try that, I still see “java” in the menubar. Is there a way to make it use “MyAppName”?  Some of my build.gradle.kts file is shown below.


plugins {
    kotlin("jvm") version "1.4.10"
    id("org.openjfx.javafxplugin") version "0.0.9"

application {
    applicationName = "MyAppName" 
    applicationDefaultJvmArgs = listOf(

javafx {
    version = "15"
    modules = listOf("javafx.controls”)

More information about the openjfx-dev mailing list