Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

exe with product key

 
Greenhorn
Posts: 21
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you got any answer of this quastion ,i am also facing the same problem
 
Saloon Keeper
Posts: 13394
296
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 789
Python C++ Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Saloon Keeper
Posts: 13394
296
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic