How to create in java ?

Discussion in 'Java' started by mohamedanvar, Feb 17, 2005.

  1. mohamedanvar

    mohamedanvar New Member

    Joined:
    Aug 15, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Hai
    I am developing a java application. For which i want to give it as 30 day's Trial pack. Give me some ideas for implementing 30 day's Trial Offer.
    After 30 days the application should be expired. I want to implement the application in both ( Windows and Mac OS ) Platform.
    Give me suggestion compiling to both platform.
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    First of all Welcome to Experts Advice Forums.

    You can use Registry to store the Date of installation in an Encrypted format and retrieve that date when the program loads and decrypt the Date and get what is the time of the system so that you know how many days have passed. Also check that current Date is not anything less than setup date and also its not more than certain range.

    You can also protect the date in a form like when OS starts your application start you can wipe out the registry and when that application ends you can write that back so that no one can find that and temper it.

    I am not sure what can be done on MAC.

    Thanks
    Shabbir Bhimani
     
    Last edited: Feb 17, 2005
  3. mohamedanvar

    mohamedanvar New Member

    Joined:
    Aug 15, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Thanks Shabbir,
    Mac OS is similar to Linux operating system. Mac does't use any registry concept,then can make my apllication portable in both windows and Mac OS.


    With regards
    Anvar S
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    You can use a file to write the same and not use the registry. But always have 2 versions for 2 OS is better. You can use the main business logic code to transport and then use the slight mod requirements of both the OS to make seperate Setups.

    Thanks
    Shabbir Bhimani
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice