You have software and you want to make a demo,trail. Use LicenseManager to create demo based on execution counts. Source is available so you can modify it.
OS: All that support Java
Need: JDK 1.4,1.5 or JRE
Program is free to download from developer site