Issue Type: Bug Bug
Affects Versions: 3.6.8
Assignee: Unassigned
Components: Core
Created: 12/Oct/12 7:13 AM
Description:

I am unable to read excel using jxl from classpath however the same code is working fine with standalone code.
Excel is placed in src/main/resources/test.xls

Workbook workbook = null; InputStream stream =this.getClass().getClassLoader().getResourceAsStream("test.xls"); workbook = Workbook.getWorkbook(stream); Sheet sheet = workbook.getSheet(0); Cell a1 = sheet.getCell(0,0);

However if I use the file system path as
workbook = Workbook.getWorkbook(new File("src/main/resources/test.xls "));
I am able to read in jbehave.

Is this an issue with Jbehave since standalone code works in both the ways.

Environment: Windows 7, Java 1.6, JBehave 3.6.8, JXL 2.6.12
Project: JBehave
Priority: Major Major
Reporter: Ajay Singh
Original Estimate: 1 day
Remaining Estimate: 1 day
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to