?
By this problem has been engaged for a long time, may be too basic, so many people can not solve, they find a lot of web pages, are too advanced, can not solve the problem. So, I adjusting supervised for a long time, to understand this simple, very simple problem. or record, good memory than bad pen, convenient Yimeimei!
?
Problem: Copy file path error java.io.FileNotFoundException: (the file name, directory name, or volume banner method is incorrect.) )
?
The method is: After copying the path, the front of the space is removed, plus double quotation marks.
? ? ? ? ? ? ? ?
?
Very basic, but no one to tell you, it is possible to grope for a long time, hey, small problem ah, really can waste so many times!?
??
Finally, add that sometimes you can't read files, such as C drive denied access, then you need to tick "run as admin" on Eclipse's icon, then don't bother.
Novice confuse: Copy file path error java.io.FileNotFoundException