わからないこと
JavaでDLLファイルの読み込みに失敗しております。DLLファイルを正常に読みたいです。読み込む方法は以下のソースに記載しています。なお、java.library.pathで
調査したこと
①DependenciesGui.exeを使用して関連を見たところ以下のものが環境に存在しない。
- api-ms-win-core-wow64-l1-1-1.dll
- ext-ms-win-core-winrt-remote-l1-1-0.dll
- ext-ms-win-cm-suspendresiliency-|1-1-0.dll
②api-ms-win-core-wow64-l1-1-1.dllはUWPに関連するdllの可能性がある。
https://social.technet.microsoft.com/Forums/windowsserver/ja-JP/327da89c-9d1c-4dca-9371-9771eabc3df9/missing-api-dll-api-stub-set-for-windows?forum=win10itprogeneral
ソース
public class Loaddll {
public static void main(String[] args) { System.out.println(System.getProperty("java.library.path")); try { System.loadLibrary("JNI_xx"); } catch (UnsatisfiedLinkError e) { throw e; } }
}
エラーメッセージ
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\test\Program\JNI_xx.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at Loaddll.main(Loaddll.java:8)
参考
https://github.com/lucasg/Dependencies
環境
- DLL作成環境:Windows Server 2016
- 実行環境:Windows Server 2016
- 使用したIDE:Visual Studio 2017 15.
- Java8

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。