in Run Configurations-> Arguments-> Program arguments, I have a folder path D:estPicFolder. But in the main method:
Run Configurations
Arguments
Program arguments
D:estPicFolder
imgPath=args[0];
imgPath is always D:estPicFolder , which is missing the last .
How can I fix this?
---------------update:
If I use D:/testPicFolder/, it works fine. But I use D:estPicFolder since works both for Windows and Linux.
D:/testPicFolder/
2.1m questions
2.1m answers
60 comments
57.0k users