I m unable to execute a program using jxl
<p>Source fie ->
location c:/program files/java/jdk1.6.0_07/bin</p>

<pre><code>import java.io.File;
import java.io.IOException;
import jxl.*;
public class Geeta {

 private String inputFile;

 public void setInputFile(String inputFile) {
  this.inputFile = inputFile;
 }

 public void read() throws Exception  {

  File inputWorkbook = new File(inputFile);

   Workbook w;
  w = Workbook.getWorkbook(inputWorkbook);
   // Get the first sheet
   Sheet sheet = w.getSheet(0);
   // Loop over first 10 column and lines
   Cell a1 = sheet.getCell(0,0);


String stringa1 = a1.getContents();
   System.out.println(stringa1);


 }


 public static void main(String[] args) throws Exception {
  Geeta test = new Geeta();

test.setInputFile("c:/Progra~1/Java/jdk1.6.0_07/bin/jxlrwtest.xls");
  test.read();
 }

}
</code></pre>

<p>compiled as 
javac -classpath jxl.jar Geeta.java</p>

<p>When I try to execute it says.. NoClassDefFoundError</p>

<p>java -jar jxl.jar Geeta</p>

<p>C:\Program Files\Java\jdk1.6.0_07\bin>java -jar jxl.jar Geeta
Exception in thread "main" java.lang.NoClassDefFoundError: Geeta
Caused by: java.lang.ClassNotFoundException: Geeta
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)</p>

<p>Plz. advice...</p>
