Suppose I click on a java
app's icon, and the app starts normally. How can I find out the path to the java
executable that is running the app?
Better yet, is there a way to find the exact command-line invocation of java
that would have the same effect as double-clicking on the icon? (Note: I'm aware of open -a
, and it is definitely not what I'm asking about here. The command-line invocation I'm interested in should begin with java ...
, specify a classpath, etc.)