tedo0627 / JEGenerator

This is the PocketMine plugin that generates the terrain for Minecraft Java Edition v1.17
GNU General Public License v3.0
16 stars 2 forks source link

Workaround for tzmappings error message #9

Open matthiaskraaz opened 1 year ago

matthiaskraaz commented 1 year ago

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.

tedo0627 commented 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.