TypeInitializationException was unhandled
<p>I'm using opennlp tool in C# language.
I wrote the following code:</p>

<pre><code>string modelpath = @"D:\models\en-sent.bin";
java.io.FileInputStream modelInpStream = new java.io.FileInputStream(modelpath);
SentenceModel model = new SentenceModel(modelInpStream);
SentenceDetectorME sentenceDetector = new SentenceDetectorME(model);
</code></pre>

<p>but it caused a TypeInitializationException in the line:</p>

<pre><code>SentenceModel model = new SentenceModel(modelInpStream);
</code></pre>

<p>the Exception message:</p>

<pre><code>TypeInitializationException was unhandled
The type initializer for 'java.nio.charset.StandardCharsets' threw an exception.
</code></pre>

<p>can anybody help me please.</p>
