Skip to Main Content

Java Programming

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!

How to escape the space in "Program Files"

807606May 8 2007 — edited May 9 2007
My 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 6 2007
Added on May 8 2007
3 comments
257 views