Forum Discussion

air16's avatar
air16
Occasional Contributor
8 years ago

how to resolve an error on code:Workbook workbook = workbook.getworkbook(new File(spreadsheet))

Hi,

 

I am getting an error: Startup failed:Script6.groovy:34;

unable to resolve class Workbook @line 34, column10.

Workbook workbook = workbook.getworkbook(new File(spreadsheet))

  • nmrao's avatar
    nmrao
    Champion Level 3
    Which library are you using apache-poi? jxl?
    Basically you need to import the Workbook class before using that.