FileInputStream returns FileNotFoundException on Apple Mac
From: Jacqueline Snook (jasnook_at_ntlworld.com)
Date: 05/11/04
- Next message: D E: "free apache tomcat info on internet"
- Previous message: Liz: "Re: Interesting and impossible NullPointerException"
- Next in thread: Fahd Shariff: "Re: FileInputStream returns FileNotFoundException on Apple Mac"
- Reply: Fahd Shariff: "Re: FileInputStream returns FileNotFoundException on Apple Mac"
- Reply: Chris: "Re: FileInputStream returns FileNotFoundException on Apple Mac"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 11 May 2004 10:09:01 -0700
I am trying to reference a file on an apple mac from Java. In order
to find what the URL is supposed to be, I opened it in the Safari web
browser. The directory as returned was
file:///Users/networkserver/SmartAV-CMS/smartav.properties.
When I give this as a String reference to FileInputStream in Java, it
returns a FileNotFoundException, quoting
"file:/Users/networkserver/SmartAV-CMS/smartav.properties (No such
file or directory).
I would like to know how to reference this file, and also maybe why it
takes out 2 of the slashes.
Many thanks in advance,
Jacqueline Snook
- Next message: D E: "free apache tomcat info on internet"
- Previous message: Liz: "Re: Interesting and impossible NullPointerException"
- Next in thread: Fahd Shariff: "Re: FileInputStream returns FileNotFoundException on Apple Mac"
- Reply: Fahd Shariff: "Re: FileInputStream returns FileNotFoundException on Apple Mac"
- Reply: Chris: "Re: FileInputStream returns FileNotFoundException on Apple Mac"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|