Unable to locate java path

Hi , I am new to docker.

I wanted to Monitor memory changes using: jcmd VM.native_memory detail.diff.
but when i run this it says jcmd is not recognized. I should be running this under the java path .
how can i locate my java path.