java.lang.UnsatisfiedLinkError无法加载dll

时间:2015-04-15 06:27:54

标签: java dll java-native-interface

你好我和JRegistryKey一起开始UnsatisfiedLinkError。我在Windows 7 32bit上使用Netbeans 8.0.2。jRegistryKey.dll位于我的Projects根文件夹和Path变量中。 我在这里得到了例外:

 RegistryKey.initialize("jRegistryKey.dll");
  RegistryKey key = new RegistryKey(RootKey.HKLM,"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\CheckpointDRG");
  Iterator<RegistryKey> subkey = key.subkeys();

例外:

Exception in thread "main" java.lang.UnsatisfiedLinkError: ca.beq.util.win32.registry.RegistryKey.testInitialized()V
    at ca.beq.util.win32.registry.RegistryKey.testInitialized(Native Method)
    at ca.beq.util.win32.registry.RegistryKey.initialize(RegistryKey.java:294)
    at gotdb.Importer.OpenConnection(Importer.java:95)
    at gotdb.GotDB.main(GotDB.java:19)
Java Result: 1

0 个答案:

没有答案