I am trying to figure out "How do I interrogate the licensing library to get license information?" from a java program. Tried to implement a test program based upon the java sample provided i.e.
public class MyMainClass {
public native static String GetPropertyValue(String aName) throws Exception;
...
try {
String value = GetPropertyValue("TrialName");
...
} catch (Exception e) {
e.printStackTrace();
}
...
}
My version is:
public class MyMainClass {
native static short DisplayRegistration();
native static String GetPropertyValue(String aName) throws Exception;
public static void main(String args [] ) {
System.loadLibrary("Trial");
try{
String test = GetPropertyValue("TrialName");
} catch (Exception e) {
e.printStackTrace();
}
}
}
Can't get this to work - error is:
Exception in thread "main" java.lang.UnsatisfiedLinkError: MyMainClass.GetPropertyValue(Ljava/lang/String;)Ljava/lang/String;
at MyMainClass.GetPropertyValue(Native Method)
at MyMainClass.main(MyMainClass.java:24)
Any help would be appreciated.
FOLLOW US
Get the latest news in Application Packaging