I need to create file on linux server.
when i try to write existing file then i got the following error.
java.io.FileNotFoundException: /sites/myproject/reports/jrxml/Test1.txt (Permission denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.j ava:179)
at java.io.FileOutputStream.<init>(FileOutputStream.j ava:70)
Where Test1.txt is already created file on path "/sites/myproject/reports/jrxml/".
Also "/sites/myproject/reports/jrxml/" is linked path for "/home/reports/"on server.
Can anybody tell me what is the reason that error is occured??
What i have to do to solve the error? what kind of permission i have to set to the file or path?
Yes this is same code for which i was talking previously.
But when try to give full path i got the "java.io.FileNotFoundException".
For more information,i dn't have to use /home directory in my path.
Is it possible that i can use path without /home directory?
Also,"/sites" folder is at the same level as "/home" folder.so my path itself is starts from
Can you suggest me what kind of permission i have to set for the path?