To get the JDK path is linux, just simply type

$ which java