Using the Sun Java Development Kit.
Download the JDK from www.javasoft.com (Warning: it’s over 20MB!)
Suppose you’ve installed it in c:\jdk1.2.1
Create an application development folder:
In this folder create a file COMPILE.BAT
c:\jdk1.2.1\bin\javac Myprog.java
Also in this folder create a file RUN.BAT
set classpath=.;c:\jdk1.2.1\lib;c:\myjava\hwo1;
c:\jdk1.2.1\bin\java Myprog
This assumes your main class Myprog has a static main method.