Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/387.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
UnsatifiedLinkerError-有没有办法解决这个问题? 线程“main”java.lang.reflect.InvocationTargetException中的异常 在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处 位于sun.reflect.NativeMethodAccessorImpl.invoke(未知源) 在sun.reflect.DelegatingMethodAccessorImpl.invoke处(未知源) 位于java.lang.reflect.Method.invoke(未知源) 位于org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58) 原因:com.melloware.jintellitype.JIntellitypeException:无法从本地文件系统或JAR内部加载jintellitype.dll 在com.melloware.jintellitype.jintellitype.(jintellitype.java:114) 位于com.melloware.jintellitype.jintellitype.getInstance(jintellitype.java:174) 在CaptureScreen.registerHotkeys(CaptureScreen.java:163) 在CaptureScreen。(CaptureScreen.java:100) 在CaptureScreen.main(CaptureScreen.java:199) ... 还有5个 原因:java.lang.UnsatifiedLink错误:C:\Users\B\AppData\Local\Temp:找不到依赖库 位于java.lang.ClassLoader$NativeLibrary.load(本机方法) 位于java.lang.ClassLoader.loadLibrary0(未知源) 位于java.lang.ClassLoader.loadLibrary(未知源) 位于java.lang.Runtime.load0(未知源) 位于java.lang.System.load(未知源) 在com.melloware.jintellitype.jintellitype.(jintellitype.java:99) ... 9更多_Java_Unsatisfiedlinkerror - Fatal编程技术网

UnsatifiedLinkerError-有没有办法解决这个问题? 线程“main”java.lang.reflect.InvocationTargetException中的异常 在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处 位于sun.reflect.NativeMethodAccessorImpl.invoke(未知源) 在sun.reflect.DelegatingMethodAccessorImpl.invoke处(未知源) 位于java.lang.reflect.Method.invoke(未知源) 位于org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58) 原因:com.melloware.jintellitype.JIntellitypeException:无法从本地文件系统或JAR内部加载jintellitype.dll 在com.melloware.jintellitype.jintellitype.(jintellitype.java:114) 位于com.melloware.jintellitype.jintellitype.getInstance(jintellitype.java:174) 在CaptureScreen.registerHotkeys(CaptureScreen.java:163) 在CaptureScreen。(CaptureScreen.java:100) 在CaptureScreen.main(CaptureScreen.java:199) ... 还有5个 原因:java.lang.UnsatifiedLink错误:C:\Users\B\AppData\Local\Temp:找不到依赖库 位于java.lang.ClassLoader$NativeLibrary.load(本机方法) 位于java.lang.ClassLoader.loadLibrary0(未知源) 位于java.lang.ClassLoader.loadLibrary(未知源) 位于java.lang.Runtime.load0(未知源) 位于java.lang.System.load(未知源) 在com.melloware.jintellitype.jintellitype.(jintellitype.java:99) ... 9更多

UnsatifiedLinkerError-有没有办法解决这个问题? 线程“main”java.lang.reflect.InvocationTargetException中的异常 在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处 位于sun.reflect.NativeMethodAccessorImpl.invoke(未知源) 在sun.reflect.DelegatingMethodAccessorImpl.invoke处(未知源) 位于java.lang.reflect.Method.invoke(未知源) 位于org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58) 原因:com.melloware.jintellitype.JIntellitypeException:无法从本地文件系统或JAR内部加载jintellitype.dll 在com.melloware.jintellitype.jintellitype.(jintellitype.java:114) 位于com.melloware.jintellitype.jintellitype.getInstance(jintellitype.java:174) 在CaptureScreen.registerHotkeys(CaptureScreen.java:163) 在CaptureScreen。(CaptureScreen.java:100) 在CaptureScreen.main(CaptureScreen.java:199) ... 还有5个 原因:java.lang.UnsatifiedLink错误:C:\Users\B\AppData\Local\Temp:找不到依赖库 位于java.lang.ClassLoader$NativeLibrary.load(本机方法) 位于java.lang.ClassLoader.loadLibrary0(未知源) 位于java.lang.ClassLoader.loadLibrary(未知源) 位于java.lang.Runtime.load0(未知源) 位于java.lang.System.load(未知源) 在com.melloware.jintellitype.jintellitype.(jintellitype.java:99) ... 9更多,java,unsatisfiedlinkerror,Java,Unsatisfiedlinkerror,当我从命令行运行时会出现这个错误,但是,它不会导致我的程序在我的机器上运行出现任何问题,但是,在其他人的机器上,程序根本不会运行 我以前从未遇到过这个错误,而且相当困惑。。大多数情况下,它在我的机器上运行正常,但在其他机器上运行不正常,即使它在两个机器上都会抛出此错误 这是一个类路径错误。您可能在编译时正确设置了它,而不是在运行时。确保您的jar位于正确的位置和/或您已将类路径设置为包含jar。转到Jintellitype网站,下载源代码,将其添加到下载文件夹中,然后在构建项目后将.dll文件移

当我从命令行运行时会出现这个错误,但是,它不会导致我的程序在我的机器上运行出现任何问题,但是,在其他人的机器上,程序根本不会运行


我以前从未遇到过这个错误,而且相当困惑。。大多数情况下,它在我的机器上运行正常,但在其他机器上运行不正常,即使它在两个机器上都会抛出此错误

这是一个类路径错误。您可能在编译时正确设置了它,而不是在运行时。确保您的jar位于正确的位置和/或您已将类路径设置为包含jar。

转到Jintellitype网站,下载源代码,将其添加到下载文件夹中,然后在构建项目后将.dll文件移动到包含Jitellitype类的文件夹中

JIntellitype库使用JNI调用JIntellitype.dll中的本机代码,但它找不到dll。看起来DLL是作为jarfile资源存储的。程序试图在运行时将其解包到temp目录以从那里加载,但出现了问题,文件实际上不在那里。
Exception in thread "main" java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: com.melloware.jintellitype.JIntellitypeException: Could not load JIntellitype.dll from local file system or from inside JAR
    at com.melloware.jintellitype.JIntellitype.<init>(JIntellitype.java:114)
    at com.melloware.jintellitype.JIntellitype.getInstance(JIntellitype.java:174)
    at CaptureScreen.registerHotkeys(CaptureScreen.java:163)
    at CaptureScreen.<init>(CaptureScreen.java:100)
    at CaptureScreen.main(CaptureScreen.java:199)
    ... 5 more
Caused by: java.lang.UnsatisfiedLinkError: C:\Users\B\AppData\Local\Temp: Can't find    dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.load0(Unknown Source)
    at java.lang.System.load(Unknown Source)
    at com.melloware.jintellitype.JIntellitype.<init>(JIntellitype.java:99)
    ... 9 more