To build the project go to terminal and type javac HelloWorld.java then to run the project, type java HelloWorld