Java中的许可证密钥生成 [英] License Key Generation in Java

查看:662
本文介绍了Java中的许可证密钥生成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何为java开发的软件生成许可证密钥?另外如何将jar文件转换为exe文件?

How to generate license key for software developed in java? Also how to convert jar file into exe file?

推荐答案

许可证3J [ ^ ]



开源。很好。
License 3J[^]

open source. works great.


那里有两个问题。



许可证密钥问题很简单,决定如何检查许可证密钥例如,将数字加起来加起来为93,然后编写一个简单的函数来生成它们。就个人而言,我使用注册详细信息中的哈希码,例如用户的电子邮件。



制作一个exe并不是一件容易的事。大多数以exe'出现的应用程序只是加载jar,你可以搜索一个非常简单的步骤,尝试从C#启动一个jar或者你想要将启动器放入的任何语言。
Two questions there.

The licence key problem is easy, decide on HOW the licence key will be checked, for example summing the digits adds up to 93, then write a simple function to generate them. Personally, I use a hash code from the registration details, e.g. the user''s email.

To make an exe is not trivial. Most apps that appear as exe''s just load the jar, a pretty simple step you can search for, try "launch a jar from C#" or whatever language you want to put the launcher in.


InnoSetup [ ^ ]



用于创建安装程序。



否则你可以简单地导出为runnable jar并添加一个快捷方式来运行它。

您也可以将JVM捆绑在一起,这样您就可以确保包含环境并且您的应用程序将运行。



只需检查退出IDE的导出选项。
InnoSetup[^]

for creating installer.

Otherwise you can simply export as "runnable jar" and add a shortcut to run it.
You can also bundle the JVM with it, so you would be sure the environment is included and your app will run.

Just check out the export-options of your IDE.


这篇关于Java中的许可证密钥生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆