Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.io.FileNotFoundException: The system cannot find the path specified

843836Mar 16 2005 — edited Mar 19 2005
hi all.

have this problem
i have a jsp with the codes as follows:
try{
File f=new File("C:/Program Files/Apache Group/Tomcat 4.1/webapps/iiso/account.xml");
FileWriter fw=new FileWriter(f,false);
XMLConverter xmlc=new XMLConverter();
String msg=xmlc.ConvertToXML("account");
fw.write(msg);
fw.flush();
System.out.println("file printed");
			
}catch(IOException ioe)
{
System.out.println(ioe);
}
it works prefectly on my comp but however when i posted it up on the dev server
which is running on tomcat 4.0

i got this error:

java.io.FileNotFoundException: P:\Program Files\Apache Tomcat 4.0\webapps\IISOelearn\account.xml (The system cannot find the path specified)

the dev server is running on P drive.
tried installing tomcat 4.0 on my com and the code runs well.
could there be other sources tt i miss out causing the error?

many thanx in advance!
=)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 16 2005
Added on Mar 16 2005
3 comments
2,677 views