fix location for java on Windows/Linux