"a registered resource factory is needed" error with absolute path [message #1060915] |
Wed, 29 May 2013 03:02  |
Eclipse User |
|
|
|
I have an xtext.jar file that I try to run in DOS command line.
When I try to use the absolute path for my input file, I am getting an error "Cannot create a resource for 'D:\01\Sample\Test\Mod1\sample.txt'; a registered resource factory is needed." This is the command I used:
java -jar xtext.jar D:\01\Sample\Test\Mod1\sample.txt
But, when I use relative paths, the jar file will work without any error.
java -jar xtext.jar Mod1\sample.txt
Anyone has any idea why this is so?
|
|
|
|
|
Re: "a registered resource factory is needed" error with absolute path [message #1061010 is a reply to message #1060950] |
Wed, 29 May 2013 09:44  |
Eclipse User |
|
|
|
Chris,
If this API wants a URI, keep in mind that \ is not a segment separator
in a URI (it's treated just like other punctuation as as "-" or "_") ,
so perhaps file:/D:/01/Sample/Test/Mod1/sample.txt would work properly
On 29/05/2013 11:31 AM, chris yo wrote:
> I tried File:\\D:\01\Sample\Test\Mod1\sample.txt, but still the same
> error. Am I using it the wrong way?
>
> In my workflow, I have disabled these for importURI.
> // scoping and exporting API
> // fragment = scoping.ImportURIScopingFragment {}
> // fragment = exporting.SimpleNamesFragment {}
>
> Could this be the reason?
|
|
|
Powered by
FUDForum. Page generated in 0.03780 seconds