how to run the dependecy class file in java
Posted
by Manu
on Stack Overflow
See other posts from Stack Overflow
or by Manu
Published on 2010-03-31T12:21:57Z
Indexed on
2010/03/31
13:13 UTC
Read the original article
Hit count: 194
java
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.
© Stack Overflow or respective owner