maven - File lock exception when using graphHopper in java program -
i'm using graphhopper in following way: graphhopper hopper = new graphhopper().forserver(); hopper.setchenable(false); hopper.setgraphhopperlocation(graphhopermasterfile); hopper.setosmfile(osmfile); hopper.setencodingmanager(new encodingmanager("car,bike")); hopper.importorload(); ghrequest req = new ghrequest().addpoint(new ghpoint (latfrom, lonfrom)).addpoint(new ghpoint(latto, lonto)) .setvehicle("car") .setweighting("fastest") .setalgorithm(algorithmoptions.astar_bi);; req.gethints().put("pass_through", true); ghresponse res = hopper.route(req); i obtained graphhopermasterfile downloading zip https://github.com/graphhopper/graphhopper/blob/0.5/docs/core/routing.md . i obtained .osm file http://download.geofabrik.de/europe/great-britain/england/greater-london.html . i added maven dependancy http://mvnrepository.com/artifact/com.graphhopper/graphhopper-we...