here how you compile the java program>javac Prog1.java>java Prog1If you get NoClassDefFoundError error then try thison the command console>set classpath=;%classpath%>java Prog1