My project has the following directories in Java Web Netbeans.
I create a file and i want to save it inside the dist folder .
I tried using
FileOutputStream(".\\dist\\file.pdf"))
But i get can not locate path. If i use the whole path including '''C:// so on"" it works but it is not efficient if i specify it as the project would not be able to run in different machines.
What can I do for it ?