java.lang.NoClassDefFoundError: java.nio.file.FileSystems$DefaultFileSystemHolder
<p>Summary:
When I try loading a DLL and the language in my computer is set to a non-latin based language (such as Korean), I get the error <code>java.lang.NoClassDefFoundError: java.nio.file.FileSystems$DefaultFileSystemHolder</code></p>

<p>If you can help me figure out how to avoid this error, I'd appreciate any help.</p>

<p>I am trying to load a Native DLL Library using:</p>

<pre><code>Native.loadLibrary
</code></pre>

<p>But I keep getting these errors:</p>

<pre><code>java.lang.NoClassDefFoundError: java.nio.file.FileSystems$DefaultFileSystemHolder
at java.nio.file.FileSystems.&lt;unknown&gt;(Unknown Source)
at java.io.File.toPath(Unknown Source)
at sun.security.provider.SeedGenerator$1.run(Unknown Source)
at sun.security.provider.SeedGenerator$1.&lt;unknown&gt;(Unknown Source)
at java.security.AccessController.&lt;unknown&gt;(Unknown Source)
at sun.security.provider.SeedGenerator.getSystemEntropy(Unknown Source)
at sun.security.provider.SecureRandom$SeederHolder.&lt;clinit&gt;(Unknown Source)
at sun.security.provider.SecureRandom$SeederHolder.access$100(Unknown Source)
at sun.security.provider.SecureRandom.engineNextBytes(Unknown Source)
at java.security.SecureRandom.nextBytes(Unknown Source)
at java.security.SecureRandom.next(Unknown Source)
at java.util.Random.nextLong(Unknown Source)
at java.io.File$TempDirectory.generateFile(Unknown Source)
at java.io.File.createTempFile(Unknown Source)
at com.sun.jna.Native.extractFromResourcePath(Native.java:839)
at com.sun.jna.Native.loadNativeLibraryFromJar(Native.java:751)
at com.sun.jna.Native.loadNativeLibrary(Native.java:737)
at com.sun.jna.Native.&lt;clinit&gt;(Native.java:129)
at com.sun.jna.Native.loadLibrary(RefProp.java:246)
</code></pre>

<p>I only get this error when I set my language in my computer to Korean (or any other non-Latin language).  When I have it as English, I don't have the error.</p>

<p>By the way, I have set the character encoding as UTF-8:</p>

<p>This code:</p>

<pre><code>Charset charset = Charset.defaultCharset();
System.out.println("Character Set: " + charset.displayName());
</code></pre>

<p>Gives this result:</p>

<pre><code>Character Set: UTF-8
</code></pre>

<p>So I know the encoding is not the problem.</p>

<p>I've read through:
<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html" rel="nofollow noreferrer">http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html</a></p>

<p><a href="https://stackoverflow.com/questions/25178582/osgi-noclassdeffound-for-java-nio-files-filesystemsdefaultfilesystemholder">OSGi noClassDefFound for java.nio.files.FileSystems$DefaultFileSystemHolder</a>
- Doesn't seem to apply because the error is slightly different.</p>