I am currently working a scenario where we have to create a file in a shared directory in Linux as well as Windows. I have gone through the following link to achieve it : https://www.journaldev.com/878/java-write-to-file https://it.toolbox.com/question/how-to-write-a-file-in-a-network-folder-without-using-ftp…