ps -eaf | grep java
command not solution here identify if process java process or not, many of java processes not listed in output after executing command.
short answer (hopefully writes more comprehensive one):
get process pid
go
/proc/<pid>
look process binary file there
run commands
file
,ldd
on , see can figure out output (check man pages of commands, of course).use
lsof
command see files process has open, , see if include telltale libraries or similar files.