使用safenet LUNA Api与eclipse(LunaTokenManager) [英] using safenet LUNA Api with eclipse (LunaTokenManager)

查看:180
本文介绍了使用safenet LUNA Api与eclipse(LunaTokenManager)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经实施了一个测试单元来加载Luna密钥库,但是当我尝试初始化LunaTokenManager时有些错误:

I have implemented a test unit to load Luna keystore but something is wrong when i try to initialize the "LunaTokenManager":

public static void main(String[] args) {
  try {
    LunaTokenManager tokenManager = LunaTokenManager.getInstance();
  } catch (Throwable t) {
    t.printStackTrace();
  }
}

我收到以下消息:

java.lang.UnsatisfiedLinkError: com.chrysalisits.crypto.LunaAPI.Initialize()V
at com.chrysalisits.crypto.LunaAPI.Initialize(Native Method)
at com.chrysalisits.crypto.LunaTokenManager.<init>(LunaTokenManager.java:107)
at com.chrysalisits.crypto.LunaTokenManager.getInstance(LunaTokenManager.java:62)
at it.tasgroup.eacs.service.TestKeystoreWithLunaSA.main(TestKeystoreWithLunaSA.java:14)

LunaApi.ddl放在C:\Program Files\LunaSA\JSP\lib
Provider.jar放在%JAVA_HOME%\lib\ext
中,两个路径都是在环境变量中配置

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

将两个jarLunaJCASP-1.0.0.jar和LunaJCESP-1.0.0.jar作为lib包含在eclipse buildpath中


the two jar "LunaJCASP-1.0.0.jar" and "LunaJCESP-1.0.0.jar" are included as lib into eclipse buildpath

推荐答案

两种可能的解决方案:
1.-你没有正确指定路径t你的图书馆
2.-您的进程和库目录之间的权限问题

Two possible solutions: 1.- You're not specifying correctly the path to your libraries. 2.- Permissions issue between your process and the library directory

这篇关于使用safenet LUNA Api与eclipse(LunaTokenManager)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆