如何用java创建试用软件代码
可能的重复:
如何创建 Java 程序的试用版
我已经创建了一个java应用程序。我需要将该应用程序作为试用版提供 15 天。
如何编写代码使我的软件成为试用版,其条件如下:
1. 如果用户更改或不更改日期,则只能工作 15 天。
目前请需要一些在 Windows 上用 java 实现的想法。
Possible Duplicate:
How to create a trial version of a Java program
I have created a java application. I need to give that application as trial version for 15 days.
How to write code to make my software as trial version, which follows the condition:
1. If user changes the date or not, it should work only for 15 days.
Please require some ideas to implement in java for Windows currently.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将首次激活的日期保存在包内的文件中(将该文件称为非文本文件,您也可以对数据进行加密)。当您看到用户更改了日期,因为它与您的首次激活日期不匹配或 15 过去后禁用该文件。如果你将文件(应该是虚拟的)与你的包一起安装然后使用它会更好,如果用户删除它或更改它(你可以添加 md5 签名)那么你的程序将失败。
you can save the date on first activation in a file inside you package (call the file something which is not textual, you might also encrypt the data). when you see that user changed the date, because it do not match you first activation date or 15 passed disable the file. It would be even better if you install the file (should be dummy) with you package and then use it, if the user deleted it or changed it (you can add md5 signature) then you program will fail.