|Summary:||Exception in thread "main" java.lang.NoSuchMethodError is recieved when running POI 1.5.1 on w2k 5.x service pack 3|
|Product:||POI||Reporter:||Brian Brewer <brian.brewer>|
|Component:||HSSF||Assignee:||POI Developers List <dev>|
Description Brian Brewer 2003-12-05 22:51:00 UTC
Exception in thread "main" java.lang.NoSuchMethodError is recieved when running POI 1.5.1 to create a workbook on w2k 5.x service pack 3. The same code works on all higher versions of windoze. Complete error msg. Exception in thread "main" java.lang.NoSuchMethodError at CreateParamXLS.writeWorkbook(CreateParamXLS.java:99) at CreateParamXLS.main(CreateParamXLS.java:30)
Comment 1 Michael Zalewski 2003-12-05 23:40:15 UTC
I run POI on Windows 2k SP 3 without any problems. Such an error is almost certainly due to not putting 'poi.jar' on the classpath, then trying to use a static method. Try putting a debug statement or log statement in CreateParamXLS.writeWorkbook(), immediately before and immediately after the first access to a POI object. Like this: System.out.println( "About to create Workbook"); Workbook myWorkbook = Workbook.createWorkbook(); System.out.println( "Workbook created"); I bet this will show the first line, but not the second. If that's your problem, it really isn't a bug. If you are writing a servlet, remember that poi.jar has to be in the classpath of the servlet container. The best way to do this is to make sure that the file is in WEB-INF\lib of your .war file.
Comment 2 Avik Sengupta 2005-05-20 11:55:16 UTC
Not a poi bug, sorry.