I want my program, a Java executable .jar, to be run just once. I made a program but now I want users not to be able to open more than one instance ....thanks for your time.
You could programmatically extract the jar file, http://www.devx.com/tips/Tip/22124, the update one file that will prevent the application from running anymore, then rejar it.
The other option would be to just delete some critical class from the jar file, but neither of these will prevent it from being run again, as they can copy the jar file.
You can't update a registry as there isn't a platform independent way to do that.