I tried to use
Keep in Dock option with a Java application that is started from the command line but when I try to restart the application it will fail - and this is happening because it will start java without any parameters.
There are two ways of starting the application on OS X but both of them fail if you want to use the Keep in Dock option.
- start it using the shell script
- start the jar file
logview.jarby clicking on it in Finder.
In case you want to debug, the application is http://code.google.com/p/otroslogviewer but I know that the same problem applies for other apps too.
How can I solve the problem so I can start the application from Dock and eventually from Finder also.