I think the closest thing to what you are looking for is the Desktop Entry. See these two questions for more info:
Register file extensions / mime types in Linux
Embedding an icon in a Linux executable
- provide an application icon for the desktop/dock
Another option here is to simply set the application icon in code: myFrame.setIconImage()
. This will show my application icon in the Ubuntu dock.
- specify JVM parameters, such as -Xmx
Another simple option: create a shell script that starts your Java program and sets all the necessary parameters.