Thanksfile:/TecnoXML/aces.xml java.io.FileNotFoundException: No such path or directory. file:/TecnoXML/aces.xml
file:///TecnoXML/aces.xmljava.io.FileNotFoundException: No such path or directory. file:/TecnoXML/aces.xml
Joe Sam Shirah wrote:
Hi George, So I take it your question is how to locate files? To the best of my recollection, and I don't have time to double check now, technically the "file:" protocol requires three ( 3 ) slashes. It also, for reasons I forget, will ( usta ) work with one ( 1 ) slash. It will not work with two slashes. Examples for /TecnoXML/ACES.xml: "file:///" + myFilePath; "file:/" + myFilePath; Result: "file:////TecnoXML/ACES.xml" "file://TecnoXML/ACES.xml" Incidentally, Java parsing for file structure will work with forward slashes even for Windows, so you can avoid intermixing slashes and backslashes. Still, it should work the same on all platforms. What syntax are you using on Windows? Joe Sam Joe Sam Shirah - http://www.conceptgo.com conceptGO - Consulting/Development/Outsourcing Java Filter Forum: http://www.ibm.com/developerworks/java/ Just the JDBC FAQs: http://www.jguru.com/faq/JDBC Going International? http://www.jguru.com/faq/I18N Que Java400? http://www.jguru.com/faq/Java400----- Original Message ----- From: "George Lopez" <georgerl@xxxxxxxxxxxx>To: <java400-l@xxxxxxxxxxxx> Sent: Wednesday, May 10, 2006 2:20 PM Subject: Format of file format in the IFS directory in JAVAI have an java xml parser developed in Eclipse. When I run the parser in Websphere Development Studio and use the xml in my C: drive it works. But if I put the xml in the ifs directory in the AS400 I get error message below..... The IFS directory in the as400 is... /TecnoXML/ACES.xml Error if i use: /TecnoXML/ACES.xml java.net.MalformedURLException: unknown protocol: Error if i use: file:///TecnoXML/ACES.xml java.io.FileNotFoundException: No such path or directory. file:/TecnoXML/Aces.xml Error if i use: file:\\\TecnoXML/ACES.xml java.io.FileNotFoundException: No such path or directory. file:\\\TecnoXML/ACES.xml -- This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)mailing listTo post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/java400-l or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.
This mailing list archive is Copyright 1997-2015 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact