java - what is the URL equivalent of an absolute path in non-windows system? -


I'm following the exception of running BITT from Linux OS.

Reason by: org.eclipse .datatools.connectivity.oda.OdaException: There is no protocol: /home/lsingh/reporting/tmp/execution1279514184559/TDReport.xml

Where " /home/lsingh/reporting/tmp/execution1279514184559/TDReport.xml "My XML Data File.

When I saw in the code of "org.eclipse.birt.report.data.oda.xml.util.XMLDataInputStreamCreator" class in BITT, I saw that the exeception is coming from the following part of the code.

  hold (malformedlexception e) {new ODEXATION (EATO localized message); }  

This means that the code is trying to change the specified file path in the URL and it fails.

So my question is how does a non-window path change in a URL? Should this prefix be with the file? ///?

Windows or not, all URLs start local files file: // with. This protocol is prefix.

Then your file will be:

file: // + / home / lsingh / reporting / tmp / execution1279514184559 /TDReport.xml = file: ///home/lsingh/reporting/tmp/execution1279514184559/TDReport.xml


Comments