
1. Set the CLASSPATH variable

   Example in Windows: 
   set CLASSPATH=.;%CLASSPATH%
   Inserts the current directory in the classpath.

2. Compile all files

   javac *.java

3. Run 

   Examples:

   i.  Simple viewer
       
       java SimpleViewer c:\images\lena.gif

   ii. Imageset Viewer
       java ImageSetViewer
       This class gets the images from the images directory.