how to run the dependecy class file in java
<p>I have created Excel Sheet using java program.It works fine.</p>

<p>My problem is, i have copied the .class file into other directory with the necessary jar files need to create this excel sheet, for example</p>

<p>my .class is inside "pack" package.</p>

<p>c:/myprogram/pack/excelprogram.class   to       d:/myprogram</p>

<pre><code>                                           /pack/excelprogram.class 
                                           /jxl.jar
                                           /ojdbc14.jar 
</code></pre>

<p>if i run the program </p>

<pre><code> javac pack.excelprogram
</code></pre>

<p>it display below error  </p>

<pre><code> Caused by: java.lang.ClassNotFoundException: jxl.format.CellFormat
</code></pre>

<p>i have dependency jar file(jxl.jar) for this excel sheet creation.Error is displaying from that only.</p>

<p>i have set class path for this jar file like</p>

<pre><code> set classpath="%classpath%";d:/myprogram/jxl.jar;d:/myprogram/ojdbc14.jar;.; 
</code></pre>

<p>even though i'm getting the same error.</p>

<p>Please help ASAP. </p>
