My requirement is to create a file in the server in Java. I initially tried with the code given below:
File file = new File(<path in the server>);
file.createNewFile(); --- raises an exception
But when I am giving a path in server I am getting an exception
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
Any help or suggestion on how to create a file in the server would be highly appreciated.