made check for windows OS a private method, in preparation for adding a similar check for linux
failed early with clear error message when path_to_java is not installed.  Linux-only for now