0

This Is Not A Duplicate, As Previous Questions On Stackoverflow Are Extremely Outdated And They Don't Work

I want to change the name of the application in the dock to make it feel more like macos. I was reading this post and I couldn't get it to work. instead, it just appeared with the name "java"
enter image description here
I would like to do this within the java program itself so that whenever the user double-clicks on the jar file, it should launch with the dock name and icon. I have successfully changed the icon with java.awt.TaskBar and also the menu bar, but I couldn't do it dock name. How do I do this?

Java Details:

$ java --version
openjdk 19.0.1 2022-10-18
OpenJDK Runtime Environment (build 19.0.1+10-21)
OpenJDK 64-Bit Server VM (build 19.0.1+10-21, mixed mode, sharing)
$ javac --version
javac 19.0.1
Rishon_JR
  • 160
  • 11

0 Answers0