• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

java io exception  RSS feed

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

plz explain me about this exception..

java.io.IOException: The system cannot find the path specified
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1157)
at java.io.File.createTempFile(File.java:1242)

bubye
 
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As the error message says, you might need to have to a look back at the path that you specified in ur appplication and make sure that the path specified is valid and accessible...

And whether your directory is read-only or writable is needed to be checked, if you are running on security-constraint environment...
 
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have admin priviledges on your machine?
 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you writing an application or an applet?
 
author and iconoclast
Posts: 24203
43
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "C:\TEMP" directory (or whichever other directory the machine wants to use for temporary files) may not exist.
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Layne Lund:
Are you writing an application or an applet?



Layne,
You are pointing to a good way... I'm not that good in developing applets, but Swing windows applications... I tried to access to the file system from my applet once when I was in college, but I couldn't do that... So I changed it to a windows application, then I can access the file system... I've been told that I need to deal with security-related stuff in JVM or sthing, which I am not familiar with...

It might be the case with the original poster as well...
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Ko Ko Naing:


Layne,
You are pointing to a good way... I'm not that good in developing applets, but Swing windows applications... I tried to access to the file system from my applet once when I was in college, but I couldn't do that... So I changed it to a windows application, then I can access the file system... I've been told that I need to deal with security-related stuff in JVM or sthing, which I am not familiar with...

It might be the case with the original poster as well...



That was exactly the point of my question
 
You guys wanna see my fabulous new place? Or do you wanna look at this tiny ad?
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!