I tried to instantiate the java object inside a PeopleSoft application.
The error is a message box below.
Java Exception: java.lang.NoClassDefFoundError: finding class
PhoneticEye
I save the .class files in C:/Pt8.44/class/ which I have added this in
the CLASSPATH.
The java file that I compilied is below
public class PhoneticEye {
static {
System.loadLibrary( "PhoneticEye_jni" );
};
/**Native Method Definition*/
public static native void PE_Initialize();
public static native void PE_UnInitialize();
public static native void PE_SetThreshold( int threshold );
public static native String PE_GetSmartCode( String targetStr, int
mode );
public static native String[] PE_GetPhonemes( String targetStr, int
mode );
public static native int PE_Match_Str2Str( String matchStr, String
targetStr, int type, int mode );
public static native int PE_Match_Ph2Str( String[] phonemes, int
phonemesSize, String targetStr, int type, int mode );
public static native int PE_Match_Ph2Ph( String[] matchPhonemes,
int matchPhSize, String[] targetPhonemes, int targetPhSize, int type,
int mode );
public static native StringMatch[] PE_Match_Str2List( String
matchStr, String[] targetStrList, int listSize, int type, int mode );
// PE MODES
public static final int PE_MODE_ENGLISH = 0;
public static final int PE_MODE_NONENGLISH = 1;
// PE TYPES
public static final int PE_TYPE_OR = 0;
public static final int PE_TYPE_AND = 1;
public static final int PE_TYPE_AND_TRANSPOSED = 2;
public static final int PE_TYPE_EXACT = 3;
PhoneticEye() {}
void Initialize() {
PE_Initialize();
}
void UnInitialize() {
PE_UnInitialize();
}
void SetThreshold( int threshold ) {
PE_SetThreshold( threshold );
}
String GetPESmartCode( String targetStr, int mode ) {
return PE_GetSmartCode( targetStr, mode );
}
String[] GetPhonemes( String targetStr, int mode ) {
return PE_GetPhonemes( targetStr, mode );
}
int Match_Str2Str( String matchStr, String targetStr, int type, int
mode ) {
return PE_Match_Str2Str( matchStr, targetStr, type, mode );
}
int Match_Ph2Str( String[] phonemes, String targetStr, int type,
int mode ) {
return PE_Match_Ph2Str( phonemes, phonemes.length, targetStr,
type, mode );
}
int Match_Ph2Ph( String[] matchPhonemes, String[] targetPhonemes,
int type, int mode ) {
return PE_Match_Ph2Ph( matchPhonemes, matchPhonemes.length,
targetPhonemes, targetPhonemes.length, type, mode );
}
StringMatch[] Match_Str2List( String matchStr, String[]
targetStrList, int type, int mode ) {
return PE_Match_Str2List( matchStr, targetStrList,
targetStrList.length, type, mode );
}
}
class StringMatch {
public String targetStr;
public int simValue;
public StringMatch(){
targetStr = "";
simValue = 0;
}
}