You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2003/12/06 00:40:16 UTC
DO NOT REPLY [Bug 25256] -
Exception in thread "main" java.lang.NoSuchMethodError is recieved when running POI 1.5.1 on w2k 5.x service pack 3
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25256>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25256
Exception in thread "main" java.lang.NoSuchMethodError is recieved when running POI 1.5.1 on w2k 5.x service pack 3
------- Additional Comments From zalewski@optonline.net 2003-12-05 23:40 -------
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.
---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-dev-help@jakarta.apache.org