When I execute the following code, on a workbook already existing and having 12 sheets : HSSFSheet sheet = wb.getSheetAt(6); sheet.setSelected(true); I get the following error message during execution : java.lang.NoSuchMethodError: org.apache.poi.hssf.usermodel.HSSFSheet.setSelected (Z)V at Traitement.<init>(Traitement.java:125)... However, I put a boolean as argument. It does not work either with false as argument (same error message). Sincerely, Cedric DUPREZ
you've got old stuff in your classpath.
I don't think I have classpath problem. In fact, I use Eclipse as development environment, and it manages classpath alone. I don't have to define a classpath variable. All classes are found correctly (compilation and execution). Cedric DUPREZ
I apologize, there was no problem. That was really a bad classpath on execution in Eclipse. Soory, and thank you for your help, Cedric DUPREZ
classpath issue