ubuntu check where jdk is located code example Example: where is java installed in ubuntu readlink -f $(which java)