dll에서 원시 코드를 호출하는 정적 함수를 사용하여 클래스를 구현하는 Jar 파일이 있습니다. jar 파일을 classpach에 추가했습니다. 난 항아리의 클래스에 찾고 있어요 그리고 같은 외모 : 내 수업에서Eclipse에서 Jar 파일의 클래스를 사용합니다.
package com.aeroflex.afApplicationControlDll;
import com.aeroflex.jni.*;
public class afApplicationControl
{
static
{
System.loadLibrary("afApplicationControlJNI");
}
public static native int GetServerVersion (int version[]);
public static native int Initialise(int n1, int n2, int n3, int n4);
}
내가
내가 가져 오기에 노력하고 afApplicationControl 클래스를 사용하는 것을 시도하고있다 :
import com.aeroflex.afApplicationControlDll.*;
을
컴파일러가 com.aeroflex를 찾지 못했습니다. *
무엇이 문제입니까?
* "나는 내 수업을하려고합니다."* shift 키를 사용해보십시오. 모든 문장의 시작 부분에 적용되어야합니다. I (또는 I 'm etc.)라는 단어를 사용할 때마다 적용되어야합니다. Java와 같은 적절한 이름이나 DLL과 같은 약어로 사용해야합니다. –