Let’s execute our first java program!

C:\Program Files\Java\jdk1.8.0_XXX
C:\Program Files\Java\jdk1.8.0_XXX\bin
C:\Program Files\Java\jdk1.8.0_XXX
In my case, I already have JAVA_HOME set. So it is shown in the list.
javac FirstJavaProgram.java
java FirstJavaProgram

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store