Is there a way to get date and time in JAVA without using sysdate and time.

Hi Everybody,
There is a requirement in my Application. The requirement is I need to instal an application and it need to expire after certain period (say 1 year).
And after that it should become useless for anyone enjoying the benefits of that. I need to know how to calculate the timeline for calculating expiry date.
<ul><li>&Oslash; We can't rely on system date, since user can modify that.</li>
<li>&Oslash; We also can't use counter because for that system should execute in 24x7.</li>
<li>&Oslash; Also there is no internet connection to fetch the current date from the global server.</li>
</ul>
So if anyone has any idea to accomplish post your suggestions to me.

ejp wrote:
I strongly suggest you take legal advice before implementing such a feature. The purchaser, or licensee, of such software has reasonable expectations and legal rights which are unlikely to be met by a brute-force scheme like that. You don't want to end up in court ...This exact situation happened at my previous employer--although it didn't go to court.
We contracted out to a 3rd party vendor to write a library for us. It was delivered in stages and paid for in stages. After we received the last delivery, but before we'd made the final payment, we had our first full-system demo for our first client/partner. Shortly before the demo was to begin, we brought the system up, and it immediately crashed. We saw a "This software is expired" type message in the log. While it's not uncommon for software to have an expiration date, our big issues with it were 1) there was nothing of the sort written into the contract, and 2) The expiration was a hardcoded "if date > whatever, System.exit" as soon as the class was even loaded.. It would've been different if trying to actually use the class caused an exception, but killing the JVM just for loading the class was not cool.
I decompiled the class, found the offending code, commented it out, recompiled, and we were off. In the meantime, our VP of R&D called the vendor to deliver a new jar file, which they did quite quickly. So, a) it was inconvenient but not difficult for me to get around the technical "solution," and b) that was as stop-gap measure--we still paid them for the software.

Similar Messages

  • Is there a way to get the songs back after you do a sync and erase? I no longer have them stored on my harddrive.

    Thanks to a wonderful geeksquad agent all my songs have been deleted from my ipod. They had to restore my computer so the ones I downloaded are no longer on my harddrive or in itunes. Is there a way to get the songs back after you do a sync and erase?

    If they are on the iPod there are third-party programs that will transfer then to  a computer. See:
    Copy music from Ipod to new computer...: Apple Support Communities
    If they ae not on either the iPOd or the computer they are gone.

  • Is there a way to get seprate notifications on Droid Razor m for email and text?

    Is there a way to get seprate notifications on Droid Razor m for email and text?

    For Gmail it is: open Gmail > menu > settings > your gmail address > notifications check box is unchecked.
    There are some additional notification options for labels too.

  • ICloud got deleted off my MacBook Pro. Is there any way to get it back? I have an iphone now and actually have a use for it.

    iCloud got deleted off my MacBook Pro. Is there any way to get it back? I have an iphone now and actually have a use for it.

    Your signature says you have 10.6.8 - is this correct? (It it isn't please amend it to prevent confusion).
    Assuming Snow Leopard, iCloud has not been deleted - it was never there. The minimum requirement for iCloud is Lion 10.7.2 (Mountain Lion preferred): the iCloud Preference Pane does not appear on earlier systems - the MobileMe pane appears on Lion and earlier but is non non-functional - you cannot now open or access a MobileMe account.
    You can set Snow Leopard up to access the email on an existing iCloud account which has been set up on a compliant device, and you may be able to sync iCal using an unsupported (and possibly unreliable) hack, but no other facilities will work. You cannot open an iCloud account on Snow Leopard.
    This page outlines the limited use you can make of an existing iCloud account with Snow Leopard:
    http://www.wilmut.webspace.virginmedia.com/notes/icloudSL.html
    To make full use of iCloud you will have to upgrade your Mac to Lion or Mountain Lion, provided it meets the requirements.
    The requirements for Lion are:
    Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7, or Xeon processor
    2GB of memory
    OS X v10.6.6 or later (v10.6.8 recommended)
    7GB of available space
    To purchase it you will have to ring Apple at the number given at the bottom left of this page.
    The requirements for Mountain Lion are listed here:
    http://www.apple.com/osx/specs/
    It is available from the Mac App Store (in Applications). (If you are currently pre-Snow Leopard you will have to upgrade to that to access the Mac App Store: it's available in the online Apple Store.)
    You should be aware that PPC programs (such as AppleWorks) will not run on Lion or above; and some other applications may not be compatible - there is a useful compatibility checklist at http://roaringapps.com/apps:table

  • Is there a way to get long running SQL Agent jobs information using powershell?

    Hi All,
    Is there a way to get long running SQL Agent jobs information using powershell for multiple SQL servers in the environment?
    Thanks in Advance.
    --Hunt

    I'm running SQL's to fetch the required details and store it in centralized table. 
    foreach ($svr in get-content "f:\PowerSQL\Input\LongRunningJobsPowerSQLServers.txt"){
    $dt = new-object "System.Data.DataTable"
    $cn = new-object System.Data.SqlClient.SqlConnection "server=$svr;database=master;Integrated Security=sspi"
    $cn.Open()
    $sql = $cn.CreateCommand()
    $sql.CommandText = "SELECT
    @@SERVERNAME servername,
    j.job_id AS 'JobId',
    name AS 'JobName',
    max(start_execution_date) AS 'StartTime',
    max(stop_execution_date)AS 'StopTime',
    max(avgruntimeonsucceed),
    max(DATEDIFF(s,start_execution_date,GETDATE())) AS 'CurrentRunTime',
    max(CASE WHEN stop_execution_date IS NULL THEN
    DATEDIFF(ss,start_execution_date,stop_execution_date) ELSE 0 END) 'ActualRunTime',
    max(CASE
    WHEN stop_execution_date IS NULL THEN 'JobRunning'
    WHEN DATEDIFF(ss,start_execution_date,stop_execution_date)
    > (AvgRunTimeOnSucceed + AvgRunTimeOnSucceed * .05) THEN 'LongRunning-History'
    ELSE 'NormalRunning-History'
    END) 'JobRun',
    max(CASE
    WHEN stop_execution_date IS NULL THEN
    CASE WHEN DATEDIFF(ss,start_execution_date,GETDATE())
    > (AvgRunTimeOnSucceed + AvgRunTimeOnSucceed * .05) THEN 'LongRunning-NOW'
    ELSE 'NormalRunning-NOW'
    END
    ELSE 'JobAlreadyDone'
    END)AS 'JobRunning'
    FROM msdb.dbo.sysjobactivity ja
    INNER JOIN msdb.dbo.sysjobs j ON ja.job_id = j.job_id
    INNER JOIN (
    SELECT job_id,
    AVG
    ((run_duration/10000 * 3600) + ((run_duration%10000)/100*60) + (run_duration%10000)%100)
    +
    STDEV
    ((run_duration/10000 * 3600) + ((run_duration%10000)/100*60) + (run_duration%10000)%100) AS 'AvgRuntimeOnSucceed'
    FROM msdb.dbo.sysjobhistory
    WHERE step_id = 0 AND run_status = 1
    GROUP BY job_id) art
    ON j.job_id = art.job_id
    WHERE
    (stop_execution_date IS NULL and start_execution_date is NOT NULL) OR
    (DATEDIFF(ss,start_execution_date,stop_execution_date) > 60 and DATEDIFF(MINUTE,start_execution_date,GETDATE())>60
    AND
    CAST(LEFT(start_execution_date,11) AS DATETIME) = CAST(LEFT(GETDATE(),11) AS DATETIME) )
    --ORDER BY start_execution_date DESC
    group by j.job_id,name
    $rdr = $sql.ExecuteReader()
    $dt.Load($rdr)
    $cn.Close()
    $dt|out-Datatable
    Write-DataTable -ServerInstance 'test124' -Database "PowerSQL" -TableName "TLOG_JobLongRunning" -Data $dt}
    You can refer the below link to refer out-datatable and write-dataTable function.
    http://blogs.technet.com/b/heyscriptingguy/archive/2010/11/01/use-powershell-to-collect-server-data-and-write-to-sql.aspx
    Once we've the table details, I'm sending one consolidated email to automatically.
    --Prashanth

  • Is there a way to get rid of the other space without restoring

    Is there a way to get rid of the other space without restoring on an ipad

    RESTORE NOT NEEDED TO RESOLVE "OTHER" SPACE ISSUES
    I may have a solution for this as I also experience this problem on the iPad 4 (retina display) 16gb where by I had over 2gb as "other space"
    First and foremost "other space" should be between 800mb and 900mb - these are preferences, apps, syncing data (not the actual photos your contacts yo may sync)
    I plugged my iPad into computer and did my normal sync
    I ejected the iPad.
    I turned the iPad off by pressing the on/off button and then sliding across to power down
    I waited 5 - 10 minutes
    I turned the iPad back on and waited another 5 - 10 minutes
    I connected it back to my PC and opened iTunes
    I noticed that the 2.74gb "other" space reduced to 835.4mb within a few seconds.
    I downloaed iExplorer and installed it (free version will do the trick)
    Have iTunes open with iPad already connected
    Open iExplorer and click "demo"
    Under your iPad navigate to Media> Photodata> Thumbnails
    Here you will see the following file names: 158x158, 240x240, and 332x332 with the extension .ithmb - make a note of these file sizes.
    Right-click each one and hit delete and click ok if a warning sign comes up
    Eject iPad using iTunes
    Close any open apps
    Do a hard reboot - hold the home button down and the on/off button together until the screen goes black and turns off - this can take up to 10-15 seconds to do
    Sometimes the iPad may reboot by itself, and sometimes it may not - if it doesn't use the on/off switch to turn it on.
    Open iTunes and then iExplorer and navigate to Media> Photodata> Thumbnails once again
    You will see the same files you just deleted - but instead of being the size you made a note of, they will be considerably smaller.
    Go to iTunes and check your "other" space and should be within the 800mb to 900mb
    This also works with the iPhone 4s and other devices running iOs 4 onwards.
    I have several devices currently on iOs 6.1.1 and all the "other" space currently shows between 800mb and 900mb which would appear to be normal
    I hope all this helps and please let me know if it solves or doesn't solve your issues
    RESTORE NOT NEEDED TO RESOLVE "OTHER" SPACE ISSUES

  • When using an external (ergonomic mouse) is there any way to get the wheel to scroll one full page at a time?

    When using an external (ergonomic mouse) is there any way to get the wheel to scroll one full page at a time? Much appreciated.

    I can't use the keyboard to scroll. I need to keep my hand on the mouse, otherwise I'd never get anything done. Since I have no problem getting Firefox to scroll one page at a time, and I'm constantly jumping between 3 browsers, it would be nice to be able to scroll a full page at a time in Safari, just like I can in Firefox. Thanks.

  • If I have an iphone that didn't come with icloud, is there a way to get icloud on it so I can use it with my ipad 4?

    If I have an iphone that didn't come with icloud, is there a way to get icloud on it so I can use it with my ipad 4?  I think my iphone is a 3g, not sure.

    Do I have to have iTunes on my PC in order to update my iPhone. I'd rather not have my computer linked with my iPad and phone. I'd like to just keep it between iPad and iPhone. I don't have a computer of my own.

  • Is there any way to delete songs directly from my iPhone without using iTunes?

    I'm trying to delete music directly from an iPhone 4 in iTunes on the device rather than using my laptop to delete and then sync it. Is there any way to delete music completely from my phone without using my latop?

    I tried this, firstly de-clicked the title in iTunes and syned with my iPhone4 but the title is still there on the phone. so deleted the title from iTunes and re-syned but alas the title is still there.
    any ideas?

  • Is there any way to find a lost iPod Touch 4G without using Find My iPhone or MobileMe? By using the serial number or the iTunes account synced in it?

    Is there any way to find a lost iPod Touch 4G without using Find My iPhone or MobileMe? By using the serial number or the iTunes account synced in it?

    "Is there any way to find a lost iPod Touch 4G without using Find My iPhone or MobileMe? "
    Other than looking for it or luck, no.
    "By using the serial number or the iTunes account synced in it?"
    No.

  • How to update and insert the records without using Table_comparison and Map_operation?

    How to update and insert the records without using Table_comparison and Map_operation?

    Use either join or MERGE see this Inserting, Updating, and Deleting Data by Using MERGE

  • Is there a way of getting a "schedule view" in iCal on a mac and on iPad in the same way you can get one on iPhone?

    IS there a way to get a schedule view of events on a busy day in iCal on the iPad 2 Air and on the Macbook Pro?  I can get this view on an iPhone.

    I am paranoid that some untrusted technician is going to make a copy of my music (11,000 tracks) or share some of my personal information (scanned copies of my birth certificate, passport, certificates, photos, etc.) on the web.
    If you put your info into the computer and hand it to another, you have to assume they will copy everything.
    Why are you putting scanned copies of valuable identity information into a computer than can be hacked, stolen, lost or compromised by a dirty tech?
    Have you lost your mind?
    Is there a way of finding out what activity has taken place whilst they've had it in their possession?
    No. The tech would just deny it if he did, or tell the truth which the answer would be "NO" in either case.
    The employer won't ask that sort of questions without solid proof, less they make a enemy of the employee and/or risk being sued for defamation of character.
    It's not like they bother to have a team of people watching over his shoulder that he doesn't stick a USB thumb drive of your data into his pocket to take home.
    I am paranoid that some untrusted technician is going to make a copy of my music (11,000 tracks)
    If it's iTunes music, it has your personal ID embedded into the song files. Most IT techs know this though.
    I appreciate any advice you guys can offer.
    Too late now, all you can do is not worry about it.
    Take your personal info out of the machine and if you need it, burn cd/dvd copies, a few USB thumb drives, Iron Keys or self encrypting external storage drives with key and/or keypad.

  • Is there a way to get an iPod touch to play one audio track and stop.

    Is there a way to get an iPad to play one audio track and stop.
    I work in education and particularly music. Teachers are looking to create a playlist of selected track but only want the selected track to play then stop.
    This allows them to talk to the class during presentation and not worry about having to stop playback mid discussion.
    I've been successful doing this from appleTVs homeshared to a library by unchecking songs in the playlist. But It would be useful to instructors who have there own media on their device.

    Thanks for a cognative answer TXMark.
    For what its worth to any readers that work in education and would like this play once and stop 'feature'
    I had great success in homeshareing a iTunes library of teaching material and creating topic specific playlist and used apple remote app to control an appletv connected to that homeshared library. As TXMark suggests, uncheck the songs in iTunes and the media will not automatically play the tracks in sequence.
    note: if you have video media that you would like to have in the playlist, be sure its listed as a music video in the options of get info of track. otherwise the apple tv will not see the media in the playlist and will put it in the movies section of the library.

  • Is there a way to get data to and from the hard drive of a Powerbook 180 without having to use the floppy drive?

    Howdy folks!
    I have an 20 year old Powerbook 180 with what I think is an unreliable floppy drive. Sometimes while accessing a diskette the screen flickers and usually power to the whole computer drops out.
    I'm not familiar with Mac connectivity. Is there a way to access the hard drive--to get data off of, and install files, etc onto, the hard drive? 3.5 inch drives are 20th century.
    But... I am happy because my old Powerbook still boots up just fine and I can look at my old files installed on the HD ok.
    Thanks,
    Hayward Matt

    Hi Hayward,
    This may be a power supply issue, not necessarily a problem with the floppy drive itself. Any change if you try removing the battery?
    Would it be correct to assume that it is a plain PowerBook 180 (not 180c)? Which power adapter are you using? It must have a 7.5 DC output, but is it capable of supplying at least 2.0 A?
    Unfortunately it is difficult to remove and connect the (2.5" SCSI) hard drive to a modern computer. Had it been 2.5" IDE, things would have been much easier.
    It is possible to set up a serial null-modem connection from a PowerBook 180 to another computer. See the following discussion for details:
    https://discussions.apple.com/thread/4974860
    If the PB 180 has an internal modem (or an external modem connected to the modem port), you could send files to another modem-equipped computer over the phone lines. With the proper software installed, the PB 180 can even use a dial-up Internet connection.
    Alternatively, another semi-old (pre-1998) Macintosh computer with built-in Ethernet could be used as an intermediary, You could use LocalTalk (or a plain Mac printer cable) for file sharing between the PB 180 and the semi-old Mac (the latter could then forward files over a local network or via the Internet). It is also possible to connect the PB 180 to the semi-old Mac in SCSI disk mode (see the user guide below for additional information).
    manuals.info.apple.com/en_US/0302674APB160180UG.pdf
    Jan

  • Is there a way to get my photo back after my phone was stolen and I backed up on iCloud?

    Hi was wondering if there was a way to get my photos off my stolen phone as I backed up to iCloud?

    Missing contacts:
    Here's a test to perform - using a computer's browser, log into icloud.com and go to the Contacts page.  If they are gone, then they are gone (is someone else using the same account as you, like a spouse or child?). 
    If they show up, then the problem is that your device is not connecting to the Contacts database on icloud. 
    On the device, go to Settings>icloud.  Be sure icloud is on and using the right ID.  If not, scroll to the bottom of the page and tap Delete Account - this just disconnects the device from that account, no data is lost.  Then log back in using the correct ID.  ALSO - be sure the Contacts are turned on (on the same screen).
    Note:  Contacts are not part of an iCloud backup, since they are part of contacts database on iCloud's servers.   So performing a restore will not help.
    Contacts are gone from icloud.com.
    Then they have been deleted.  There are many reasons for this.  One possibility is that someone else is using the same iCloud account (family member, etc.) and they deleted contacts, thinking they did want them on THEIR device.  How to get them back?  Unfortunately, an iCloud backup does not include any of the sync databases, like contacts, notes, calendars, reminders, etc. because the data is already stored in these databases.  Your only hope for restoring the data is if you had that data on a computer (like a mac's Contacts, Calendars, etc.) and that data was backed up using whatever backup software you typically use (e.g. Time Machine on a mac).  Just restore the data files back to the computer.  Other than that, I'm afraid the data is gone.

Maybe you are looking for

  • New iMovie app for iPhone 4 not showing up in Location Services (Settings)

    iMovie app for iPhone 4 not showing up in Location Services (Settings). It apprently needs to be both viaible and turned on in Settings/General/Location Services in order for the app to discover previously taken video (Location Services correctly rec

  • A recent PSE9 update repeatedly has download errors. What's wrong?

    Yesterday, 11-Jun-2014, and again today, an automatic updater app (on my Win7/64 PC) indicated an update was available. Several times yesterday, and again several times today, I initiated the update to PSE9.0.3 (which came bundled with Photoshop Came

  • Changing captions of tab-control

    Hi, how can I change the label of every page (tab) of a tab-control during runtime? Mareike

  • Atajos en Premier Pro1.5

    hola , como puedo quitar todos los efectos de los clips del timeline al mismo tiempo, para copiarlos era Paste Attributes y para quitarlos tambien(en el premier 6.5), pero en el Pro no encuentro la manera....... gracias

  • Jscrollbar scrollbar not painting

    I have a jscrollpanel and whenever I populate the panel, the jscrollbar actual scrollbars do not paint until i hover my mouse over them. How would I make it repaint automatically?