how to run the dependecy class file in java
- by Manu
I have created Excel Sheet using java program.It works fine.
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
my .class is inside "pack" package.
c:/myprogram/pack/excelprogram.class to d:/myprogram
/pack/excelprogram.class
/jxl.jar
/ojdbc14.jar
if i run the program
javac pack.excelprogram
it display below error
Caused by: java.lang.ClassNotFoundException: jxl.format.CellFormat
i have dependency jar file(jxl.jar) for this excel sheet creation.Error is displaying from that only.
i have set class path for this jar file like
set classpath="%classpath%";d:/myprogram/jxl.jar;d:/myprogram/ojdbc14.jar;.;
even though i'm getting the same error.
Please help ASAP.