File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes java io exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java io exception" Watch "java io exception" New topic
Author

java io exception

Soundar Sweet
Ranch Hand

Joined: Dec 17, 2004
Posts: 31
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


Soundar
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
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...


Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
K Riaz
Ranch Hand

Joined: Jan 08, 2005
Posts: 375
Do you have admin priviledges on your machine?
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
Are you writing an application or an applet?


Java API Documentation
The Java Tutorial
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24184
    
  34

The "C:\TEMP" directory (or whichever other directory the machine wants to use for temporary files) may not exist.


[Jess in Action][AskingGoodQuestions]
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
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

Joined: Dec 06, 2001
Posts: 3061
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java io exception