title: Preparing JNA for use in Eclipse
body: <p><strong>Background:</strong> 
  I'm doing machine learning research, and want to use the <a href="http://leenissen.dk/fann/wp/" rel="nofollow">FANN</a> library to construct neural networks. The source code is written in C, but I need it wrapped so that I can use it with a lot of Java classes we've created.</p>
  
  <p><strong>Question:</strong>
  The website provides a link to an already well received wrapper software called fannj. Its dependencies is the FANN library source code and JNA. I've never done wrapping before so JNA is brand new to me. The <a href="https://github.com/twall/jna/blob/master/www/GettingStarted.md" rel="nofollow">github homepage for the code</a> mentions "<em>you must set the jna.library.path system property to the path of the FANN Library"</em>. I'm currently in the process of trying to do this in Eclipse on Mac OS X. A friend of mine mentioned to me earlier that it means I have to pass the location of the FANN library as argument to the virtual machine, but he only showed me how to do this via the shell. I never actually ran this command from the shell, because I wasn't sure how it would conflict with whatever configurations I do in Eclipse later. </p>
  
  <p>How do I set the <code>jna.library.path</code> in Eclipse? The JNA directory is huge, and I don't know where the actual executable is. My friend suggested I modify its run configuration through use of the argument tab, but like I said I don't actually know where the executable is. All I have is the large uncompressed jar file. How can I go about getting it set up in Eclipse?</p>