Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.1k views
in Java FTP by (420 points)
I have purchased ftpj-pro and was emailed a link to download the package and a license code.

There was instruction to use some java code, but I am not clear about when I should be using it:

com.enterprisedt.util.license.License.setLicenseDetails("NAME", "123-1234-1234-1234");

Do I write some throwaway code to invoke this once? Will it alter the content of the jarfile? Do I have to call this once during my app initialization (or in a static class init block) ?

Thanking you kindly for any clarification :-)

2 Answers

0 votes
by (162k points)
This just loads the license details into static variables that can be easily accessed, so you just need to call it once in a static init block or something like that. You can also replace the license details in the trial license.jar and use that as an alternative.
0 votes
by (420 points)
Thank you for that clarification. I did not realize that I could reuse the free version's license.jar in this way.

Categories

...