Page 1 of 1
Update personal license used in SDK
Posted: Fri Jan 15, 2021 8:12 pm
by sderrick
We are using the SDK in a stand alone Java app. Some users use our floating license server, we also have some people use a personal license.
I would like the ones using a personal license to update the license used for the SDK when we get their SMP renewal. What is the API to force the SDK to ask for a license?
thanks,
Scott
Re: Update personal license used in SDK
Posted: Mon Jan 18, 2021 9:14 am
by Radu
Hi Scott,
By SDK do you mean our Author Component which can be embedded in a Java Swing application?
https://www.oxygenxml.com/doc/versions/ ... onent.html
I'm afraid there is no API to force the SDK to ask for a license once the personal license has been pasted by the end user and saved in the component's preferences folder.
The component should create a preferences folder located in "%APPDATA%\Roaming\com.oxygenxml.author.component" and inside it there should be a license.xml file containing the licensing details. Maybe you can look for that license file inside the component's preferences folder "AuthorComponentFactory.getInstance().getWorkspaceUtilities().getPreferencesDirectory()" and if it contains a personal license inside show the end user some kind of error dialog.
Regards,
Radu