File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes General Computing and the fly likes Expiring application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Expiring application" Watch "Expiring application" New topic

Expiring application

dema rogatkin
Ranch Hand

Joined: Oct 09, 2002
Posts: 294
What's general technique of stopping working Java application after certain time (trial or demo version)? How to prevent working app after reinstallation? It's for Windows platform. Is any hidden file to mark first intall? Where is the best way to put it to avoid hacking?

Tough in space?, <a href="" target="_blank" rel="nofollow">Get J2EE servlet container under 150Kbytes here</a><br />Love your iPod and want it anywhere?<a href="" target="_blank" rel="nofollow">Check it here.</a><br /><a href="" target="_blank" rel="nofollow">Curious about generic in Java?</a><br /><a href="" target="_blank" rel="nofollow">Hate ant? Use bee.</a><br /><a href="" target="_blank" rel="nofollow">Need contacts anywhere?</a><br /><a href="" target="_blank" rel="nofollow">How to promote your business with a search engine</a>
Michael Ernest
High Plains Drifter

Joined: Oct 25, 2000
Posts: 7292

This sounds to me like a question on licensing techniques. I'll move it to General Computing.

Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3753

As someone who's gotten around virutally every time out exception ever made, I'm going to go out on a limb and say you can't prevent users from getting passed it. You can make it painful or more difficult to do it though.

For example, putting this setting in an unencrypted file (like a properties file) or registry will stop about 80% of people, but a number will still get through. Putting it in an encrypted file stops even more people but then people just change their clock date when they install the program or figure out how to edit the file.

I'd say the safest (and most annoying) solution is to have the client software be required to check with an administration server before the program loads so that it keeps track of use. IBM does this with many of their products like Clearcase, Clearquest, and Rational Rose. The problem with this is that users can still crack it, and then you have to maintain a server and database with tracking information.

Ultimately, I want to say it doesn't matter which you choose. If you write good software that people like, they will pay. And if its for business's they will have to pay lest they get audited for thousands of dollars.

[OCA 8 Book] [Blog]
dema rogatkin
Ranch Hand

Joined: Oct 09, 2002
Posts: 294
I completely share your opinion, I'd say more not only remove any protection, but provide complete source. Good application will be paid off even more in this case. However, I am not CEO yet, so I get paid for providing solutions for certain problems like this. Anyway, thank you for sharing your opinion.
wood burning stoves
subject: Expiring application
It's not a secret anymore!