Hi Veena, > Thanks very much for getting back to me. I put all the libraries in the > same directory as the build/classes/mypackage/Business.class
The libraries don't need to be in the same directory as long as your classpath references them. > But now I am > getting, classNotFoundException > mypackage.BusinessPlan. This is probably because you are now trying to run your code from the build/classes/mypackage directory rather than build/classes Leave the libraries where they were originally (c:\poi-3.5-FINAL), cd to the build/classes directory and run the following command (note the semi-colon followed by a dot at the end of the classpath, it's important as it tells the JVM to include the current directory in the classpath too): java -cp c:/poi-3.5-FINAL/poi-3.5-FINAL-20090928.jar;. mypackage.BusinessPlan -xls I would also suggest you get familiar with running Java from the command line, including setting the classpath properly. This is not specific to POI but will help greatly in running examples. Bruno --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
