I have a Java application in my dock, whose icon appears as the following when it is unopened:
However, after opening the application, the icon changes into the Java coffee cup logo:
This makes it hard to distinguish from other running Java apps, which all happen to do the same thing.
Is there any way to prevent this icon change? I'm running 10.8.4.