Jump to content
Excelsior Forums
Ph3n1x

MacOS: -Xdock:name not working

Recommended Posts

I am trying to integrate my application more into OS X. When my main class is com.example.HelloWorld, then usually the name in the dock is HelloWorld, unless you change it with -Xdock:name="MyProgram".

Sadly, this does not work with Excelsior! It also seems, that the resulting main class after jetcp is named "app", as that is always the name in the dock when I start the jet optimized file.

 

Edit: I am using the maven plugin:

<jvmArgs>
    <jvmArg>-Xdock:name="MyProgram"</jvmArg>
</jvmArgs>

 

Edited by Ph3n1x

Share this post


Link to post
Share on other sites

I figured out, that the name 'app' does not come from the main class name, but from the directory I started it from. When I start the application from the directory 'test', in the dock the application is also named 'test'.

Share this post


Link to post
Share on other sites

Hello, you should use JVM options

-Dapple.awt.application.icon
-Dapple.awt.application.name

instead of

-Xdock:icon
-Xdock:name

for customizing your AWT application using Excelsior JET.

 

Please note that for better user experience on OS X you may pack your application as an application bundle: https://github.com/excelsior-oss/excelsior-jet-maven-plugin#creating-os-x-application-bundles-and-installers

 

--
Excelsior Support

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×