Hi All,
I'm totally new in OpenStreetMap forum. I need to do one, probably simple filtering operation in Osmosis but I'm getting this message "Files was unexpected at this time."
I'm using windows 8.1 and Java 1.7. First I installed Java 32bit but after restarting computer osmosis it didn't run. I downloaded and install Java 64 bit and after running osmosis I was able to see loading script but it looks incomplete. I specified path to IF "%JAVACMD%"=="" set JAVACMD="C:\Program Files (x86)\Java\jre7\bin\java" but after running this line: osmosis --read-xml highways.osm --tf accept-w ays highway=* --used-node --write-xml highwaysdone.osm but i got this message: C:\Users\adam.roborelanium\Desktop>"C:\Program Files (x86)\OSMOSIS\bin\osmosis.b at" Files was unexpected at this time. here's all log copy.
Any idea, what can cause a problem ? ps. I put double quotes before and after %JAVACMD% but then osmosis doesn't want to start at all. Thank You for help asked 17 Jun '14, 08:58 roborelanium aseerel4c26 ♦
showing 5 of 6
show 1 more comments
|
OK works ! But... installation of osmosis-latest.zip was giving me problems I mentioned above even after running it in c:\ After many try I run osmosis-0.43.1 and I filtered file successfully Thanks for help good forum ! answered 18 Jun '14, 16:38 roborelanium |
The Files originates from C:\Program Files[...].
Are you sure that this is a java problem and not a windows batch file problem? You were running "osmosis.bat" last. Adding to scai's comment: Try to cd into the directory C:\Program Files (x86)\OSMOSIS\bin\ and run the bat there.
Thanks a lot for answers.
I run osmosis.bat directly from the C:\Program Files (x86)\OSMOSIS\bin\ location but it's the same error. Is this what You are suggesting or I'm misunderstanding scai's "Files originates from C:\Program Files[...]" ?
In addition I tried to use OSMembrane which is using osmosis engine and it asked about the location of a batch file (I specified osmosis.bat in C:\Program Files[...]) but after running pipeline I got error too.
what am I doing wrong ?
Thank You for help
Maybe osmosis has a bug which prevents it from running inside paths which contain spaces? Try to run it in a path without spaces.
Thank you scai
I run it in C:/ path but I got following error:
'osmosis' is not recognized as an internal or external command, operable program or batch file.
or how to access path without the spaces ?
By installing/moving osmosis to a different directory, e.g. "C:\OSMOSIS" instead of "C:\Program Files (x86)\OSMOSIS".