This article contains HelloWorld Example in Java and step by step guide to run Java program from command prompt. Beginners who just started to learn Java or using Java often struggled and doesn't know how to run a Java program from command prompt. Running a Java program is simple but setting up Java environment is rather cumbersome specially if you are new in Programming world and not
very familiar with words like PATH, CLASSPATH or even command prompt. I don't blame you because we all start at some point of time and even When I started to wrote my first Java program, What I was doing was simply typing HelloWorld from a text book in a notepad editor, to my surprise my Java program ran without any issue because I was running that on school PC where PATH and CLASSPATH was already setup but when I tried the same thing in my home Windows PC I had tough time to run my Java program including HelloWorld Example in Java.