This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

exe with product key

 
Roshan Wankhade
Greenhorn
Posts: 21
Eclipse IDE Java Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I have desktop application build in java swing.
Now i want to make an executable for it so it can get install on the client machine.
I don't want to give client the runnable jar file, to avoid its redistribution.
From jar, i want to make the exe with the product key. so that exe can only install on one machine.
I google about it but haven't find solution... Please help me.
 
monisha kasturi
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you got any answer of this quastion ,i am also facing the same problem
 
Stephan van Hulst
Bartender
Pie
Posts: 4838
34
Chrome Netbeans IDE Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what will stop anyone from redistributing the exe, or pulling the jar from the exe?

Instead, let the jar check the license, then you don't have to muck around with executables. It will also be more portable.
 
Guillermo Ishi
Ranch Hand
Posts: 789
C++ Linux Python
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stephan van Hulst wrote:
Instead, let the jar check the license, then you don't have to muck around with executables. It will also be more portable.

How would you do this exactly?
 
Stephan van Hulst
Bartender
Pie
Posts: 4838
34
Chrome Netbeans IDE Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can just write a library that can generate and validate your custom license format, or you can use third party software. Then, when a user wants to use some protected feature of your application (possibly the entire application), it checks the license manager and determines how it should proceed.

It's important that your application and the library you use are signed before you distribute them, so that they can't be replaced with impostors.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic