This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is it a security related issue ??

 
Sanjeev Charla
Ranch Hand
Posts: 90
Firefox Browser Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


and the result is :


run:
file status :true
file not found : D:\ (The system cannot find the path specified)
BUILD SUCCESSFUL (total time: 0 seconds)


please explain, thank you.
 
Soumyajit Hazra
Ranch Hand
Posts: 136
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your FileOutputStream receives a drive name not a file name. Try with
 
Sanjeev Charla
Ranch Hand
Posts: 90
Firefox Browser Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok ok,
in this case ??




run:
file status :false
file not found : H:\sample.txt (Access is denied)
BUILD SUCCESSFUL (total time: 0 seconds)
 
Rob Spoor
Sheriff
Pie
Posts: 20388
46
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why did you switch from D: to H:? Do you even have an H: drive? If so, is it writable, and not a CD-ROM?
 
Sanjeev Charla
Ranch Hand
Posts: 90
Firefox Browser Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


actually in the previous post , i want to explain the reason.

H drive is not the cd rom and any read only type disc. it is a Hard disk.
this partition is in the second hard disc i have.
at first, i have tried to create files on H drive.
when it is throwing exception, i tried on D drive.
in those trails, i forget that i am using a drive (D:\\) and not a file (D:\\sample.txt) etc.

that is the whole story.

 
Sanjeev Charla
Ranch Hand
Posts: 90
Firefox Browser Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please consider this also :






run:
file status :false
IO Exception : Access is denied
BUILD SUCCESSFUL (total time: 1 second)




 
Rob Spoor
Sheriff
Pie
Posts: 20388
46
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you create a file in that directory from Windows itself?
 
Sanjeev Charla
Ranch Hand
Posts: 90
Firefox Browser Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you,
by using your post, my problem is solved.
 
Rob Spoor
Sheriff
Pie
Posts: 20388
46
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So can I assume the problem was caused by Windows security?
 
Sanjeev Charla
Ranch Hand
Posts: 90
Firefox Browser Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes,
file creation is not allowed at that place (on the partitions of , secondary hard disc) . . .
only folders are allowed . . . i don't know why this was happening . . . if possible, please explain the reason . . .
thanks once again,
 
Rob Spoor
Sheriff
Pie
Posts: 20388
46
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ask your system administrator about file and folder rights.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic