Check for java installation