Regarding Module 7 Part 3 - Reading_XLS_Files | Selenium Forum
M
Posted on 17/04/2016
Hi ,
I am creating a class file Reading_XLS_Files.
Prior to this I have added the Xls_Reader.java code from the ready made code provided.
I have kept both the files in same package.
When I create an object of Xls_Reader and pass the file path in the constructor I get error in the line as "The constructor Xls_Reader(String) is undefined" .

The code :
public class Reading_XLS_Files {

public static void main(String[] args) {

Xls_Reader datatable = new Xls_Reader("C:\\tmp\\Data.xlsx");

}

}

Also PFA snapshot.


Regards
Sanjay

M
Replied on 17/04/2016

Hi ,

I got the solution for this issue.
I had not compiled the Xls_Reader.
Its working fine now.

Regards
Sanjay