Testing if a jar was executed from commandline or "doubleclick"?
I'm wondering if there's a way to determine whether a jar has been executed from the command line (java -jar <jar>) or through a windows association, like when you double click it in explorer.
As I understand it, there's no System.out (or it's a dummy or something) when you execute a jar through the windows association (even if you "execute" the jar from the commandline, by just typing in the name of the jar, instead of using java -jar). I wonder if this could be a clue?
If anyone has suggestions, I'd appreciate it. Thanks.
-Brian

