I have a Java (Swing) application and I want to anchor it in the OS X dock. But, if I try do it, my app don't start correctly. Instead of it, a terminal is starting. Maybe, I must write script to run my app. Maybe, I must create *.app file for my app.
Can you advise some articles on how to anchor a Java application to the Mac OS X dock?