How to escape the space in "Program Files"
807606May 8 2007 — edited May 9 2007My project is installed in C:\Program Files\JavaProject directory. I have put a resources.xsd file at C:\Program Files\JavaProject\jboss-4.0.2\bin.
When am trying to use it at runtime it says >>
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'file:///C:/Program%20Files/JavaProject/jboss-4.0.2/bin/resources.xsd', because 1) could not find the document; 2) the doc
ument could not be read; 3) the root element of the document is not <xsd:schema>.
It worked well when JavaProject was directly put in C: directory and run.
My code calls the xsd file just by name without the file path as resources.xsd and run.bat files are in same directory. I tried putting .\ in front of resources.xsd(at calling position), but it failed.
Is there a work around for it?
Thank you