Thank you for your reply.
I will try it and let you know ASAP. Meanwhile, I tried running the compiled program after adding a JAR that I require (it is the Apache POI jar) to the lib/ext folder of the jre within the jdk folder.
The compilation happened, but I am unable to run the program.
The program is XMLToExcel.java and it is present inside the package com/apress/excel, which is inside the 'src' directory
I tried running the program by issuing the command -
java com/apress/excel/XMLToExcel
from the src directory after compiling it, but I get the familiar NoClassDef error:
Exception in
thread "main" java.lang.NoClassDefFoundError: org/apache/poi/hssf/u
sermodel/HSSFWorkbook
This class is indeed present in exactly the same package inside the JAR that I added.
How do I fix this? Thanks.
[ June 02, 2008: Message edited by: Sridhar Venkataraman ]