Added error line which checks whether getParentFile() is null...if so, asks the user to retry by providing jar file with the parent directory.