I am trying to locate the JDK to setup jstatd but I am unable to locate it.
When I type
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
-bash: cd: /usr/bin/java: Not a directory
java: /usr/bin/java /usr/bin/X11/java /usr/share/java /usr/share/man/man1/java.1.gz
Usually jdk's and jre's are located under
/usr/lib/jvm. To be sure, do an
ls -la $(which java), it should be a symlink pointing to the real binary (You could have to repeat this operation, usually if there are alternatives this link could point to another link).