Open matthiaskraaz opened 1 year ago
Thanks for the advice. This project invoke java from native and I can't invoke java before native. I also thought about removing java.text.DateFormat.getDateInstance(); but I couldn't remove it because it is used in the library. This error is disturbing but has no particular impact, so I will ignore it.
Hi, I found your project while googling for a fix for "Illegal format in tzmappings file: illegal non-newline character found at line 1, offset 46.". Now I have found the cause myself: the loading of the tzmappings file depends on the C library global default file open mode. I presume that you are using a native library that changes that global. Workaround: invoke java.text.DateFormat.getDateInstance(); (or anything else that triggers the JDK to load the tzmappings file under Windows) BEFORE loading the native library.