2012-04-28 19 views
4
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 

그러나 명령 줄에서 실행할 때이 오류가 발생하지만 내 컴퓨터에서 내 프로그램을 실행해도 문제가 발생하지 않지만 다른 사람 컴퓨터에서는 프로그램이 전혀 실행되지 않습니다.UnsatisifiedLinkError - 문제를 해결하는 방법에 대한 아이디어가 있습니까?

나는 전에이 오류를 발견하지 못했으며 상당히 혼란 스럽습니다. 대부분이 컴퓨터에서 정상적으로 작동하지만 두 가지 모두에서이 오류가 발생하더라도 다른 컴퓨터에서는 정상적으로 작동합니다.

+2

JIntellitype 라이브러리는 네이티브 코드를 호출하는 JNI를 사용하는 프로젝트를 빌드 후 Jitellitype 클래스와 폴더에 .dll 파일을 이동 JIntellitype.dll에 있지만 DLL을 찾을 수 없습니다. DLL이 jarfile 리소스로 저장되어있는 것처럼 보입니다. 런타임에 프로그램이 임시 디렉토리에 압축을 풀려고 시도하지만 프로그램이 실제로로드되지 않았지만 파일이 실제로 존재하지 않습니다. – rob

답변

1

이것은 클래스 경로 오류입니다. 그럴 가능성이 당신이 바로 런타임에 컴파일 시간을 설정할 수 있습니다. 항아리가 올바른 위치에 있고 항아리를 포함하도록 클래스 경로를 설정했는지 확인하십시오.

Jintellitype 웹 사이트
1

이동, 소스를 다운로드 다운로드 폴더에 추가 한 다음

+0

시도해 보니, 주사위는 아직 없습니다. – ShaneIsrael

관련 문제