logo separator

[mkgmap-dev] Problem using jar file in a different location

From Carlos Dávila cdavilam at orangecorreo.es on Wed Oct 10 12:12:11 BST 2012

El 10/10/12 11:53, Steve Ratcliffe escribió:
> On 10/10/12 10:07, Carlos Dávila wrote:
>    
>> If I move my compiled mkgmap.jar file to a location different than dist
>> folder and run it, I get the error below:
>>      
>    
>> I have copied osmprotobuf.jar and protobuf.jar to the same location than
>> mkgmap.jar, but it didn't help.
>>      
> Those are old files.
>
> You need to copy the 'lib' folder so that it is in the same folder as
> mkgmap.jar. The lib directory should contain the files:
>
> 	osmpbf-1.1.1-754a33af.jar
> 	protobuf-java-2.4.1.jar
>
> ..Steve
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>
>    
There must be something else missing. Placing both jar files into /lib 
the error is thrown at an earlier step (14 sec vs 2 min 13 sec), and the 
error message is slightly different:
Bad file format: ethiopia.osm.pbf
Failed to read binary file ethiopia.osm.pbf
Exception in thread "main" java.lang.NullPointerException
         at 
uk.me.parabola.mkgmap.combiners.FileInfo.getFileInfo(FileInfo.java:147)
         at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:429)
         at 
uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:126)
         at uk.me.parabola.mkgmap.main.Main.main(Main.java:114)



More information about the mkgmap-dev mailing list