When you write a Java application, you'll get a `.jar` file in the end. If you launch this file on a mac, you'll end up having the default java icon and you are unable to save the application in the Dock. Fortunately, there is a Maven plugin to package a .jar file into a native .app file.