[Solved] Java getting global date not the system date even if offline [duplicate]


What you are asking is not possible. But You can try something else to achieve your goal.

1- Make internet conneciton mandatory for you software to run or check date whenever internet connection is on.

2- Save current date to db or a file securily whenever your software exit. And check this date when your software start. If systems current date is before your saved date, you can understand system date is changed. At this point you can un-licence the software or ask for internet connection. It could still be fooled but this can give you some ideas.

3- Use dongle for licencing. You can find information here

1

solved Java getting global date not the system date even if offline [duplicate]