i tried creating and excel file using this code and its giving me an error of classNotFound please what do i do
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.usermodel.WorkbookFactory;
public class WorkingwithFile {
public static void main(String[] args) throws Exception {
try{
XSSFWorkbook workbook = new XSSFWorkbook();
FileOutputStream out = new FileOutputStream(new File("c:/excel.xlsx"));
XSSFSheet spreasSheet = workbook.createSheet(devnami);
workbook.write(out);
out.close();
}
catch (Exception e){
System.out.println(e);
}
System.out.println("its been created");
}
}
open to plenty ideas please