title: using safenet LUNA Api with eclipse (LunaTokenManager)
body: <p>I have implemented a test unit to load Luna keystore but something is wrong when i try to initialize the "LunaTokenManager":</p>
  
  <pre><code>public static void main(String[] args) {
    try {
      LunaTokenManager tokenManager = LunaTokenManager.getInstance();
    } catch (Throwable t) {
      t.printStackTrace();
    }
  }
  </code></pre>
  
  <p>i got the following message:</p>
  
  <pre><code>java.lang.UnsatisfiedLinkError: com.chrysalisits.crypto.LunaAPI.Initialize()V
  at com.chrysalisits.crypto.LunaAPI.Initialize(Native Method)
  at com.chrysalisits.crypto.LunaTokenManager.&lt;init&gt;(LunaTokenManager.java:107)
  at com.chrysalisits.crypto.LunaTokenManager.getInstance(LunaTokenManager.java:62)
  at it.tasgroup.eacs.service.TestKeystoreWithLunaSA.main(TestKeystoreWithLunaSA.java:14)
  </code></pre>
  
  <p>LunaApi.ddl is placed in C:\Program Files\LunaSA\JSP\lib
  Provider.jar is placed in the %JAVA_HOME%\lib\ext
  both path are configured in environment variables</p>
  
  <p>the two jar "LunaJCASP-1.0.0.jar" and "LunaJCESP-1.0.0.jar" are included as lib into eclipse buildpath</p>