Hello! This problem is due to missing of POI library. This problem can be solved by downloading the Apache POI labrary from http://poi.apache.org/. Download the Zip folder Extract the folder and add JAR files in the Project Library. The Problem is solved and xls files are generated successfully. Regards, Vajahat Ali ,Software Engineer,Lahore, Pakistan :)