I've noticed that when running a .JAR file the unity launcher can be quite annoying.
If the JAR file is run in a terminal then the launcher icon is the one set in the application, as expected. However if it is run from nautilus with a double click or Open with... > OpenJDK then the title in the launcher is Open JDK and the icon is always the default icon. I think this is because java is opening the file rather than running it straight off (if that makes sense).
Is there any way to have the application's icon rather than the default if running it from nautilus, without making a .sh file or something similar to call it?
PS: I don't want it permanently in the launcher, therefore I don't want to create a .desktop file for it. I want it like any other application which when run appears in the launcher.