Find out what program runs in the java.exe process

Solution 1:

Use Sysinternal's Process Explorer. Like task manager, this application can show you all running processes.

But it can also show you the command line arguments used to launch the process: right click the column headers and select the "command line" column. This extra information will help you identify which java application is running in a given java.exe process.

If that is not yet enough information, Process Explorer can also tell you which files, network connections, registry entries etc. are being used by the process.

update: as mentioned in the comments below, the standard Windows Task Manager can also show the command line. Go to "View" - "Select Columns..." and check "Command Line".

Solution 2:

You should be able to find the process id using netstat. You can use wmic after that.

wmic process where processid=<pid> get commandline

This should give you more details about the Java process in case you're running it on Windows.

Since this is an extremely old thread, could you tell me what was the final solution that you used?