
Hi Peter, I know the phenomenon from other applications. Main.class.getResourceAsStream("/help/en/options") works via the classloader. If running from a .jar, the resources have been packaged with the classes during build. But when launching from the IDE, the classes are located in ./classes while the resource file is still in a different path ./resources/help. Manually copying the resource files into classes/ allowed mkgmap to run, but as mkgmap includes an IntelliJ Run/Debug configuration I was amazed that it did not work. Well, let's concentrate on the feature. bye, Nop Am 09.10.2021 um 18:54 schrieb Gerd Petermann:
Hi Nop,
a missing resource file is caused by a wrong build. I don't know how to fix that in IntelliJ. In Eclipse I just have to rebuild. Maybe try to build with ant on the command line first.
Gerd
________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Nop <nop@wanderreitkarte.de> Gesendet: Samstag, 9. Oktober 2021 18:38 An: mkgmap-dev@lists.mkgmap.org.uk Betreff: Re: [mkgmap-dev] Contributing to mkgmap
Hi Peter,
thinking about what you wrote, is it possible that this is a bug in mkgmap?
If Main.getValidOptions() would return null if unable to read, it would work. But as it returns an empty Set, all normal options are rejected. And of course those are required to control mkgmap.
bye, Nop
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev