Essentials, Part 1, Lesson 1: Compiling & Running a Simple Program
——First set the path of the java at the command prompt.
>set path="you directory path containing java(bin folder)"
after that use javac. This command is use to compile the java program.
to run your java program use java.
> java program
Answer by Ashish2:
You can also place the compiled java class file in a specified directory by
Last Wiki Answer Submitted: August 6, 2012 10:40 am by Compile30 pts.