title: NoSuchMethodError using JNA User32 platform map
body: <p>I received the following error on the first attempt of using the User32.Instance: </p>
  
  <blockquote>
    <p>Exception in thread "main" java.lang.NoSuchMethodError: com.sun.jna.Native.load(Ljava/lang/String;Ljava/lang/Class;Ljava/util/Map;)Lcom/sun/jna/Library;<br>
      at com.sun.jna.platform.win32.User32.(User32.java:48) </p>
  </blockquote>
  
  <p>whilst trying to run a JNA pre-defined mapping of the Windows User32 class functions. </p>
  
  <p>I tried running the following code:</p>
  
  <pre><code>HWND hwnd = User32.INSTANCE.FindWindow(null,"new 2 - Notepad++");
  User32.INSTANCE.SetForegroundWindow(hwnd);
  </code></pre>
  
  <p>Do I have to declare my own Interface or am I able to use the User32 JNA mapping located in jna-platform? What am i doing wrong?</p>
  
  <p>Edit: The error is on this line from the com.sun.jna.platform.win32.user32:</p>
  
  <pre><code>User32 INSTANCE = Native.load("user32", User32.class, W32APIOptions.DEFAULT_OPTIONS);
  </code></pre>