Hi,
bbcork wrote:As JB/Eclipse will not allow me to refer to this method from a class in the default package that loads the library,
I'm having some issues - explicitly the ?UnsatisfiedLinkError when I try to call the method from within another class
inside a package....
Please note that this feature will not work if the application runs from the IDE (Eclipse for example). In order to test the feature you can build the JAR files, create the Java Product in Advanced Installer, configure the licensing for it and install the package.
The main class of your Java application should contain the declaration of the
DisplayRegistration() function:
- Code: Select all
public native static short DisplayRegistration();
Also, in the main class the function should be used:
- Code: Select all
public void showRegDlg() {
short ret = 2;
ret = DisplayRegistration();
if (ret == 0) // the user has provided a valid registration key
}
With this code added to the main class, you can now call the
showRegDlg() function from anywhere in the application when you want to show the registration dialog. I'm not sure how your classes are organized, but using this code shouldn't break any rules.
kkim wrote:What happens if someone tries to change the system clock? Will it trick AI into thinking the trial will last longer?
No, the licensing feature is independent of the system clock.
kkim wrote:Also, after the trial period ends, what happens if someone uninstalls the product, and re-installs the product? Will it start from scratch again?
No, the license information remains on the machine after an uninstall. Therefore, the elapsed trial period will stay the same even if the application is reinstalled.
Regards,
Cosmin