2015-08-28 59 views
0

我想創建離線OSM文件使用OSMAnd運行運行這些instructions脫機文件OSM爲OSMAnd使用OsmAndMapCreator

java -Djava.util.logging.config.file=logging.properties -Xms256M -Xmx2560M -cp "./OsmAndMapCreator.jar:./lib/OsmAnd-core.jar:./lib/*.jar" net.osmand.data.index.IndexBatchCreator ./batch.xml 

我越來越net.osmand.data.index.IndexBatchCreator類不能發現錯誤。

我已經更新batch.xml指向我的文件夾爲:

<process directory_for_osm_files="/opt/OpenStreetMap/osm_files" 
directory_for_index_files="/opt/OpenStreetMap/index_files" 
directory_for_generation="/opt/OpenStreetMap/gen_files" 

指定我的工作文件夾和這些文件夾存在。

回答

0

在執行該命令之前,您需要「cd」進入OsmandMapCreator主目錄。 java類路徑相對於主目錄。