• Post Reply Bookmark Topic Watch Topic
  • New Topic

File Not found error!  RSS feed

 
Freiza Gen
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whenever I try to read/write file:

This Works


And

This Do Not Work


Why?

When ever I try to create Excel file using the first one. It works. But whenever I try to use the absolute full path. It gives me (The system cannot find the file specified)
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you exactly using this to create an Excel file?

Does the directory (c:\Hello in your example) in which you try to save the file exist? If the directory does not exist, you have to create it first.
 
Freiza Gen
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes the directory exists.
I am using apache poi.

Even c:\\myproject.xlsx do work.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!