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

前端 未结 6 460
名媛妹妹
名媛妹妹 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:38

    If your "workingDir" is a relative path, then are you sure you are on the correct "current directory" when you moved your app from unix to windows? Maybe, you should check what the current directory of the running application is.

提交回复
热议问题