It is case sensitive."java HelloDan" not "java hellodan"Include the '.'(current) directory in your classpath.