Reputation: 1440
I have an excel file attached/imported to my project. How can I open it to a File f using the path?
The following didn't work:
File f = new File("Category Coverage Active SKUS.xlsx");
Thanks
Upvotes: 0
Views: 42
Reputation: 48
It seems that you put the file into your src/main/java folder. Try this:
File f = new File("src/main/java/Category Coverage Active SKUS.xlsx");
In eclipse, the root path is where the .project and the .classpath files are located.
Upvotes: 2