using readlink to find javahome