It's not a secret anymore!
The moose likes Java in General and the fly likes exe with product key Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "exe with product key" Watch "exe with product key" New topic
Author

exe with product key

Roshan Wankhade
Greenhorn

Joined: Dec 07, 2011
Posts: 21

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

Joined: Jun 15, 2015
Posts: 33
Have you got any answer of this quastion ,i am also facing the same problem
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3986
    
  18

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.


The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.
Guillermo Ishi
Ranch Hand

Joined: Jul 28, 2014
Posts: 611
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

Joined: Sep 20, 2010
Posts: 3986
    
  18

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: exe with product key
 
jQuery in Action, 3rd edition