Importing classes & utilities in the manifest // JNA
<p>I'm a CS student and am in way over my head for an end of the year project, for which I need to find the dimensions and locations of a separate window. I've found that I need to use JNA libraries and understand how to do that but I don't understand how to import the JNA libraries through the manifest. Here is my file structure so far (I'm working in netbeans):</p>

<ul>
<li>Project Folder

<ul>
<li>dist Folder</li>
<li>nbproject Folder</li>
<li>src Folder</li>
<li>Test Folder</li>
<li>Build.xml</li>
<li>Game.exe &lt;-- This is the exe I run from the java file itself. I need to find this window's size and location for use later in the project</li>
<li>jna.jar &lt;-- need to implement this as a classpath</li>
<li>Manifest.mf &lt;-- I supposedly need to edit this.</li>
</ul></li>
</ul>

<p>The reason I show you this is to ensure that I've put the JNA Jar in the correct place.</p>

<p>Next, here is my manifest:</p>

<pre><code>Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build
Class-Path: C:\Users\justi_000\Google Drive\4. APCS\JZMinesweeper\jna.jar
</code></pre>

<p>So I need to edit the bit after the <code>java -cp</code> but I don't know what to put there, and in what order. The java tuts, etc aren't of much help.</p>

<p>Additionally, are these imports correct? They may be the problem and I have correctly imported everything, but I doubt that.</p>

<pre><code>import com.sun.jna.*;
import com.sun.jna.platform.win32.WinDef.HWND;
import com.sun.jna.win32.*;
</code></pre>