my question is related to importOrLoad() function in Graphhopper.class.
Instead of loading the osm file from the file system, I want to include the osm file and related graph directory directly in my application jar package. This is needed since only one jar file can be distributed within my cluster system.
Is it possible to import the OSM File from the classpath and not from the filesystem?
So far I tried to use a URL beginning with "classpath:\" but this results in following error.
Exception in thread "main" java.lang.RuntimeException: Directory classpath:\osm\bayern-latest\bayern-latest.osm-gh does not exist and cannot created to place lock file there: classpath:\osm\bayern-latest\bayern-latest.osm-gh\gh.lock
Graphhopper can't get the Filesystem lock, since the classpath is read only access.