Typically, what does it mean when java returns a “The parameter is incorrect”

前端 未结 6 461
名媛妹妹
名媛妹妹 2021-01-21 03:00

I am creating a file like so

try {
    File file = new File(workingDir, obj.getName() + \".xls\");
    outputStream = new FileOutputStream(file);
} catch (FileN         


        
6条回答
  •  一生所求
    2021-01-21 03:19

    Maybe it's because of the backslashes in the path? Path too long? File name invalid for this error (special caracters...) ?

    I might be totally wrong, but worth a try since it sounds like a OS dependent error.

提交回复
热议问题