How to view shell commands used by eclipse “run configurations”

前端 未结 3 516
梦毁少年i
梦毁少年i 2021-01-31 02:50

Given a \"run configuration\" in Eclipse, I want to print out the associated shell command that would be used to run it.

For example: Right now, in Eclipse, if I click

3条回答
  •  粉色の甜心
    2021-01-31 03:37

    Another trick if you're running on a Unix OS (although you have to be snappy about this...) is to initiate your Run.. within Eclipse and then switch over to a command prompt and run this command (Mac syntax):

    ps -ef | grep java
    

    This will print out the command line Java process invocations that are currently running. Look for the one that corresponds to your Eclipse process (check the main class, which is the last parameter on the command line) and voila!

提交回复
热议问题