Issue with application title name in mac Sonoma beta versions

I have an application that is developed using java swings using JFrame. When launching that application in macOS Sonoma, the application name is displaying as "java"

WORKAROUNDS tried

System.setProperty("apple.awt.application.name", "MM Scheduling");

  frame.setTitle("MM Scheduling");

please refer attached screenshoot where my appliation name is "MMScheduling" but am getting it as "Java"

Issue with application title name in mac Sonoma beta versions
 
 
Q