Getting NoClassDefFoundError only with TestCases

Posted by Teja on Stack Overflow See other posts from Stack Overflow or by Teja
Published on 2012-09-17T09:36:08Z Indexed on 2012/09/17 9:37 UTC
Read the original article Hit count: 238

Filed under:
|
|

I have one class, that creates excel sheet.For that I added poi-3.2.jar to classpath. I am working with Eclipse3.7.
I have generated testcases by recording workbench actions using with WindowTester Pro. I edited generated testcase and tried to create excel sheet within that to write test result.

If I use same API from normal java program (within that plugin itself), it can able to create excel file without errors. But, when I try to create from testcase, I am getting the following error:

java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFWorkbook

I have added required jar file into lib folder and added to build-path. Why its working from normal java program, but not working from WindowTester generated testcase.

Could anyone help me.

© Stack Overflow or respective owner

Related posts about java

Related posts about eclipse