open command prompt (WIN+R, type cmd)
go to directory where program is saved e.g., if program on thumb drive E: in directory JavaProg,
> e: > cd JavaProg
compile
> javac
ClassWithMain.java
interpret with JVM
> java
ClassWithMain